This forum is no longer active. Please post your questions to our new community site

Forums LAMPStack

How do I change mysql port

Subscribe to How do I change mysql port 3 post(s), 2 voice(s)

 
Avatar ddemings 6 post(s)

I’m trying to change the port MYSQL uses after it is installed. It was installed by the LAMP stack with the mediawiki module after.

I tried changing /etc/mysql/my.cnf and /lampstack/mysql/my.cnf but no effect so far

-dave

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Try to modify the “—port” option in the <installation_directory>/mysql/scripts/ctl.sh also. This change should be enough. You should not modify the /etc/mysql/my.cnf file because this file is used by the installed database on your system, it is not used by the MySQL included in the stack.

Cheers

 
Avatar ddemings 6 post(s)

Thanks. I didn’t notice it was overriding the .cnf. works great.

Forums LAMPStack