MySql and Php Script setup help..

by 4 replies
5
I'm setting up a script... here are the options Im asked ofr on the install page.

MySQL Server:
MySQL User:
MySQL Database:
MySQL Password

Im confused by the MySQL server option, what should this be.. I imagine it would be the word 'localhost' but its not and I've not seen something like this before..

Cheers.
#programming #mysql #php #script #setup
  • Localhost will usually do, but you should probably find out from your hosting provider. Nobody here can tell you for sure.
  • Usually the MySQL server software is on the same box as your web server.

    That's why leaving it blank or enter "locahost" is the norm.

    If your host chose to host their MySQL server database on a different box from your web server, they would tell you what you need to enter there. There's no way to guess.

    Cheers,

    Neil
    • [ 1 ] Thanks
    • [1] reply
    • Sometimes it can be using IP Address: 127.0.0.1
      It is the same as localhost.

      Otherwise you will need to consult your hosting provider.
  • MySQL Server: is usually localhost.

    The problem you're having could be from MySQL User and MySQL Database not being set correctly in the script's config file. If you are using cpanel, MySQL Database should be in the following format YourCpanelUsername_MySQLDatabaseName and MySQL User should be in following format YourCpanelUsername_MySQLUsername.

Next Topics on Trending Feed