I wonder if I could update a table in a remote database without using phpmyadmin.
I have remote IP, user and psw of the remote db.
I tried this code mysql -h [remote-IP] -u [myusername] -P 3306 -p, and I provided th correct psw, but I get this error:
ERROR 2002 (HY000): Can't connect to server on [remote-IP]
I have mariadb, and I changed, in local config file, the bind-address to 0.0.0.0.
I know that there should be other steps, but my question is: it’s worth my effort?
On the one hand mantainer said that it would not possible bypass phpmyadmin, on the other WordPress can update the remote database without phpmyadmin.
Thank you!
Thank you, @m_hutley and @Thallius: if I follow other steps (such as said here, for example) there is some hope to reach my aim, or without permissions that only the maintainer can provide no effort could succeed?
Maybe the simplest way, if I have to add few new rows in my database, is to dump these single rows and insert them on remote trough a sql query phpmyadmin.
However I wonder if importing a whole table in a (remote) database the same-named existing table is correctly replaced. If so, using phpmyadmin would be easier than I so far expected.
generally speaking, if you’re going to import an entire table as a replacement, the first lines of the import are DROP TABLE tablename; CREATE TABLE tablename [table definition code goes here]; then the record imports. It’s not about replacing per-se, as it is blowing it away and starting again.
(or DROP TABLE tablename IF EXISTS, but the effect is the same)