Does a PHP to MySQL connection need to be local? -
Does a PHP to MySQL connection need to be local? -
okay, know may noobish question, forgive me, right have xampp , i'm running local apache server on personal computer test php code. have setup test database through phpmyadmin on webhost (hostgator), it's looking if want connect database need have php file editing on same server because of tutorials read tell me utilize locoalhost servername requirement when using mysqli or pdo.
is because 'can't' connect database on separate server? or because it's not mutual because there improve way things? (i've seen hints on beingness able download mysql , phpmyadmin onto pc, , importing , exporting tables, i've seen hasn't been clear on if that's need or not.) give thanks you!
no, it's mutual practice utilize different machines web , mysql. there few issues (not familiar hostgator i've dealt similiar). 1 firewall. external hostgator network not have access.
if want connect database need have php file editing on same server because of tutorials read tell me utilize locoalhost servername requirement when using mysqli or pdo.
i'd find improve tutorials. it's practice separate mysql server away web server.
php mysql pdo mysqli phpmyadmin
Comments
Post a Comment