Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1
  • 2

TOPIC:

Database not on localhost 10 years 1 month ago #1581

  • thebrentc
  • thebrentc's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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.

Database not on localhost 10 years 1 month ago #1582

  • thebrentc
  • thebrentc's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
that would be xerte online toolkits 2.1.

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

Database not on localhost 10 years 1 month ago #1585

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1296
  • Thank you received: 310
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.

Database not on localhost 10 years 1 month ago #1590

  • thebrentc
  • thebrentc's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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.

Database not on localhost 10 years 1 month ago #1591

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1296
  • Thank you received: 310
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.

Database not on localhost 10 years 1 month ago #1592

  • thebrentc
  • thebrentc's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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.

  • Page:
  • 1
  • 2
Moderators: ronmjultenJohnSmith
Time to create page: 0.050 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search