Forum Moderators: mack
Pls advise.
When they say it is localhost it will be from that specific machine. I have knows isp's to move the db onto another machine try using an ip address instead of localhost. It just might work.
For example on my hosting account I have a different ip for my site and my db, but still part of the one account.
Mack.
I installed phpdev-it;s a all in 1 package - apache,mysql,php.
I've served up the php pages in the www folder which acts as the webpages folder.
While I've placed the mysql data files( myi & myd ) into the mysql folder. the path usually - mysql/data/folder-containing-thedatabase
On the local machine it works flawlessly.
I've asked my host provider & they say using localhost is correct.
I have this connect code $objconnect=mysql_connect ( "localhost", "databasefolder" ,"")
without the password.
So my understanding is if I place the data files into the correct mysql folder on the server, the php files will connect to it.
While I see my host tutorials says that you need to set the password & all that crap?
Do I also have to change the php.ini variables - the global variables ?
Which would give you:
$connobj = mysql_connect("hostname", "username", "password") ...or something similar
Each server is configured differently. Check through your account documentation again, or contact tech support there to see if they can talk you through it.