Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-24-2011, 10:20 AM   #1
LQ Newbie
Registered: Sep 2011
Posts: 19

Rep: Reputation: Disabled
ubuntu server: change mysql port & phpmyadmin

I have 2 questions about changing the mysql port:

1)I changed my mysql port by editing the "my.cnf" file.
But there were 2 default "port 3306" entries.
One under "[mysqld]" and one under "[client]".
Do I change both entries, so the one under "[mysqld]" AND the one under "[client]"?

2)After changing the port, I installed phpmyadmin: "apt-get install phpmyadmin"
After installing phpmyadmin, which files must I edit in the phpmyadmin settings?
So far I have found these files which have port settings:

I'm working on a remote VPS, so I only can do it through terminal.

Thank you!!

Last edited by dragonetti; 11-24-2011 at 12:54 PM.
Old 11-24-2011, 06:25 PM   #2
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 21

[mysql] section is for mysql clinent and [mysqld] section is for mysql server .
In order to change the port the server listens on you have to edit port value under [mysqld] .

It should be : \etc\phpmyadmin\
1 members found this post helpful.
Old 11-24-2011, 06:42 PM   #3
LQ Newbie
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change ' to ' sign in ubuntu server rytec Linux - Software 5 06-10-2011 05:36 AM
MySQL (phpMyAdmin) & PHP iWant2Know Programming 5 08-24-2010 03:44 PM
mysql / phpmyadmin & fedora fuelinjection Linux - General 2 06-20-2005 10:28 PM
MySql & phpMyAdmin & mysqldump BaerRS Linux - Software 2 01-24-2003 09:05 AM
phpMyAdmin & MySQL Staz Linux - Software 0 09-26-2002 07:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration