Report any technical problems you discover and discuss solutions.

Database not on localhost

  • thebrentc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #1581 by thebrentc
Database not on localhost was created by thebrentc
Hi
Setup failed at one of the early steps for me, with a problem connecting as the specified user.

It seemed to want php_value mysql.default_host <whatever> in an .htaccess (LAMP server), because if this value is not defined it defaults to localhost for mysql_connect.

Just in case it's useful.

B

Please Log in or Create an account to join the conversation.

  • thebrentc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #1582 by thebrentc
Replied by thebrentc on topic Database not on localhost
that would be xerte online toolkits 2.1.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #1585 by tom
Replied by tom on topic Database not on localhost
Is that the latest 2.1?

I'regurarly install XOT on LAMP with MySQL on a different server, and it has never failed for me on that particular error.

Please Log in or Create an account to join the conversation.

  • thebrentc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #1590 by thebrentc
Replied by thebrentc on topic Database not on localhost
Thanks

Downloaded two days ago so should be latest.

It seemed stuck and to progress when I set the value, after seeing on php.net:
"..If the PHP directive mysql.default_host is undefined (default), then the default value is 'localhost:3306'. In SQL safe mode, this parameter is ignored and value 'localhost:3306' is always used. .."

B

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #1591 by tom
Replied by tom on topic Database not on localhost
Is the correct server mentioned in database.php?

If not, then somthing went wrong during installation. You should be able to fill it in there. You shouldn't have to change it in php.ini

Please Log in or Create an account to join the conversation.

  • thebrentc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #1592 by thebrentc
Replied by thebrentc on topic Database not on localhost
I didn't check database.php at the time. It might well be something else went wrong- we'd been going back and forth already, and I think we'd confused the session. Sorry, not a great issue report. Anyway, it's all installed and looking happy now!

Please Log in or Create an account to join the conversation.

Moderators: ronmjultenJohnSmith
Time to create page: 0.157 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo