Jump to content

Recommended Posts

Posted

Are there seperate servers for the mysql databases or do they reside on the same servers as user's content?

 

Thanks,

Ed

ReadingEd.com

Posted

they reside on your site, your server! With TCH and cPanel, you have the ability to backup your MmySQL dsatabase and assign user access to it as well.

-kw

Posted

I think the MySQL server is running on the same machine as the user's files.

 

To access the server in a script, I have to set the database server to localhost, so it means the server is running on the same machine.

 

But you should wait for an admin to confirm that.

Posted

The term 'localhost' is actually a special keyword used in Unix/Linux environment to represent the web server that you are running on, and simply avoids having to hard code in your actual host name or IP address.

 

Example: here is a statement in MySQL/PHP:

mysql_connect(localhost,$username,$password);

 

This line tells PHP to connect to the MySQL database server at 'localhost' (localhost means the server that the site is running one. Unless you web host tells you otherwise you should use localhost) using the username stored in $username and the passoword in $password.

 

HTH!

-kw

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...