Jump to content

connecting to a site database in CLI?


devWhiz

Recommended Posts

If the script is not uploaded onto the server you cant use

 

$dbc = mysql_connect('localhost', 'username', 'pass');

 

so how could I connect in cli?

 

this did not work

 

$dbc = mysql_connect('http://123.456.789.10', 'username', 'pass');

So what can I do?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/233698-connecting-to-a-site-database-in-cli/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.