Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-12-03 09:02:34
- mastorna
- New Member
- Registered: 2007-12-03
- Posts: 2
connect to mysql via different port
I’m running into issues installing TP on a shared hosting environment. My installation of mysql is not on 3306 but rather 5611. When I run /setup/ to install textpattern, i plug in my information and hit next but it does not successfully configure my system.
In fact, when I hit next, it goes from
https://mydomain.com/mastorna/textpattern/setup/
to
https://mydomain.com/mastorna/textpattern/setup/mastorna/textpattern/setup/index.php
which of course isn’t found.
Part of me is wondering if its due to the fact that my port is different than the default. how do I denote that my port is different in the setup fields? localhost:5611?
any help would be great.
Offline
Re: connect to mysql via different port
You can simply enter the colon-separated port designation at the setup screen’s host input as localhost:5611
, or later on add it to /textpattern/config.php, like so:
$txpcfg['host'] = 'localhost:5611';
Offline
#3 2007-12-03 19:09:17
- mastorna
- New Member
- Registered: 2007-12-03
- Posts: 2
Re: connect to mysql via different port
if you were to add in the socket to this (localhost:5611), how would you do it?
I imagine it’d be: localhost:5611:/path/to/mysql.sock
Offline
#4 2007-12-04 22:07:20
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: connect to mysql via different port
You use hostname:port or socket location. See the “server” parameter for mysql_connect.
Offline
Pages: 1