Installation with non-standard MySQL port
Installation with non-standard MySQL port
Hi out there,
I've a little tricky problem. I want to install phpwcms on a server where are different MySQL versions installed on it. Because of that the different versions are accessible through different ports.
So I've tried to give the setup the location of the MySQL server like localhost:43306 (for a MySQL 4 version) or localhost:53306 (for a MySQL 5 version).
Unfortunately phpwcms isn't able to use a different database connection port, is it? I haven't found anything related to that in the conf.inc.php.
Does anyone know how to setup phpwcms for this case?
Thanks in advance,
Dennis
I've a little tricky problem. I want to install phpwcms on a server where are different MySQL versions installed on it. Because of that the different versions are accessible through different ports.
So I've tried to give the setup the location of the MySQL server like localhost:43306 (for a MySQL 4 version) or localhost:53306 (for a MySQL 5 version).
Unfortunately phpwcms isn't able to use a different database connection port, is it? I haven't found anything related to that in the conf.inc.php.
Does anyone know how to setup phpwcms for this case?
Thanks in advance,
Dennis
Hello Juergen,
seems to be a good hint but why to make it so complex?
I know that 3306 is the stanard port of MySQL and it works. But I will use a different MySQL version (for testing purpose) and why to 'create' a new IP if I only want to use a different connection port?
On my testing system at home it will be no big problem to bind each MySQL version on a different IP but it's not possible on the office system.
Dennis
seems to be a good hint but why to make it so complex?
I know that 3306 is the stanard port of MySQL and it works. But I will use a different MySQL version (for testing purpose) and why to 'create' a new IP if I only want to use a different connection port?
On my testing system at home it will be no big problem to bind each MySQL version on a different IP but it's not possible on the office system.

Dennis
- Oliver Georgi
- Site Admin
- Posts: 9917
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
put different port behind host
Oliver
Code: Select all
$phpwcms["db_host"] = "localhost:1234"; //default = 3306
Hi Oliver,
is it also possible with the Version 1.2.8 of phpwcms?
If I edit the conf.inc.php to
The connections seems only happen through the MySQL5 server. If I turn the MySQL5 server off, a "no db" error occurs.
The status of the MySQL4 server doesn't really matter to the cms.
Or do I miss some settings?
Greetz,
Dennis
is it also possible with the Version 1.2.8 of phpwcms?
If I edit the conf.inc.php to
Code: Select all
$phpwcms['db_host'] = 'localhost:43306';

Or do I miss some settings?
Greetz,
Dennis
- Oliver Georgi
- Site Admin
- Posts: 9917
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Hi,
sorry for late response. I solved the problem on a little different way.
It seems, that the php command mysql_connect expects to connect through the standard socket (/var/lib/mysql/mysql.sock) on my server, no matter which port I set.
So, I did my workaround by setting the server connection settings to:
This works fine (although it may not be a very elegant way to solve it).
Thanks so far,
Dennis
sorry for late response. I solved the problem on a little different way.
It seems, that the php command mysql_connect expects to connect through the standard socket (/var/lib/mysql/mysql.sock) on my server, no matter which port I set.
So, I did my workaround by setting the server connection settings to:
Code: Select all
$phpwcms['db_host'] = 'localhost:/path/to/mysql.sock'
Thanks so far,
Dennis
don't know what u r "frickeling" all time but:
works anyway
greetz
Code: Select all
$phpwcms["db_host"] = "localhost:8888"; OR ANY OTHER
greetz