• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Connect to MYSQL database.

slaw

Software Developer
Joined
Aug 27, 2007
Messages
3,665
Solutions
125
Reaction score
1,111
Location
Germany
GitHub
slawkens
I want connect to my mysql base which is on another computer. Now i'm using phpmyadmin, but it takes too much time, and i'm often using it, and i know something about sql so its time waste.

I tried via command line, but doesnt work, server not responding.

Code:
mysql -u xxx -h 91.121.31.13 -p

I'm entering password, and getting this error after some seconds:
Code:
ERROR 2003 (HY000): Can't connect to MySQL server on '91.121.31.13' (10060)
 
Are you sure you are connecting with the right user to the host?
Or have added you@ip to the user table?


yes, with right user. No, i not added. It will work without restart mysql?

#Edit

I see table "db", there is "Host" and is setted - "localhost" can i add more IP, or only 1 can be?
 
Last edited:
Maybe you have done something wrong. Check them again.

SQL> GRANT ALL PRIVILEGES ON database.* TO user@'ip' IDENTIFIED BY 'pw' WITH GRANT OPTION;

Comment out skip networking or try bind mysql to your global ip.

Edit:

You can add % which will work for all ip's.
 
Last edited:
Back
Top