• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

MySQL not localhost

M

MaRiOs

Guest
How do I remove the localhost thing from mysql so me and my clients can connect from their home's using progs like MySQL administrator etc ?
 
I have found this :

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dmysql -e "insert into user values ('111.111.111.111', 'databaseusernamehere', password('databasepasswordhere'), 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N')"


and then run:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e "flush privileges;"
(Note:_ The Y's and N's above indicate permissions)


But this is on a certain db,
i want this for all the dbs.
 
Ok I just saw this post :


use mysql;
UPDATE db SET Host='%' WHERE Db="YOURDBNAME";
UPDATE user SET Host='%' WHERE User="YOURUSER";
FLUSH PRIVILEGES

This will then open your server to external connections for that particular database.

But i want to do it for all databases,how can I do that ?
 
you have to create a user for non local permissions....

ie
CREATE USER 'john'@'%' IDENTIFIED BY 'doe';

you need to create one of these for every user that wants to access their db out side your machine.
 
Back
Top