Jump to content

Problem with port change for mysql


Recommended Posts

  • Premium

Hy,i have a problem with port of mysql.I tryed to change the port 3306,and i follow this tutorial:

 

i create in /etc a file my.cnf and i put this:

 

#Mysql configuration
[mysqld]
port=my port

 

after i write this command in putty: /usr/local/etc/rc.d/mysql-servert restart,afther that i gave reboot on my VPS and when i start the server i receive this:

 

123.png

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Try it with this :)

Open config.txt in your dbcache directory. There you find your mysql data.

At the end of every line you'll see a 0.

Change this 0 to your new port. That will fix db cache.

 

 

Same procedure when you're working with CONFIG files (but there could be no 0 at the end of the line. You can just add a number, it should work)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.