| Index
» Projects
» phpMyEdit
» Forum
» Change mySQL port |
 |
joshskan
Joined: 18 May 2009
Posts: 4
Posted: 2009-05-18 22:34
Back to top
Reply with quote
|
I need to work with a database that is using a different port from the mysql default port of 3306. How can I make phpMyEdit work with this, but for the setup and for the resulting code.
Has anyone done this yet?
|
joshskan
Joined: 18 May 2009
Posts: 4
Posted: 2009-05-18 23:13
Back to top
Reply with quote
|
I need to work with a database that is using a different port from the mysql default port of 3306. How can I make phpMyEdit work with this, *both* for the setup and for the resulting code.
Has anyone done this yet?
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-05-19 14:47
Back to top
Reply with quote
|
In this example, change 3306 to your port number.
| Code: |
| $opts['hn'] = 'localhost:3306'; |
|
joshskan
Joined: 18 May 2009
Posts: 4
Posted: 2009-05-19 18:31
Back to top
Reply with quote
|
Thanks for the reply. I tried that and it didn't work. I don't believe mySql likes the ":3306"
|
joshskan
Joined: 18 May 2009
Posts: 4
Posted: 2009-05-20 00:37
Back to top
Reply with quote
|
Sorry, that worked perfectly. I didn't realize I had outgoing traffic blocked on my router for that port.
|
|
Post new topic
Reply to topic
|
|
|
|