Can the MySQL port be modified from conf.ini?

A place for users and developers of the Xataface to discuss and receive support.

Postby Aoirthoir » Wed Sep 20, 2006 9:21 am

Pretty much as stated. If it cannot I assume I would change it in one of the .php files.

I've been using Xamp. But I realized I was using Wamp before. So now I am at times running 2 copies of MySQL on different ports. If it cant be set in an ini or a local(app) file, then I will just keep changing the settings back and forth for now.

Thank you kindly.
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Sep 20, 2006 9:58 am

You should just be able to append the port to the host line of the conf.ini file. The info from the [_database] section essentially gets passed directly through to the mysql_connect call (http://ca3.php.net/manual/en/function.mysql-connect.php).

e.g.

[_database]
host=localhost:9091 ; Mysql is running on port 9091

Hope this helps..

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby Aoirthoir » Wed Sep 20, 2006 11:23 am

That does it. I can add to the issue tracker and mark it resolved or leave it here. Will of course add it to the FAQ and other docs as I get them going.
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 11 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved