Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GRANT ALL PRIVILEGES ON somedatabase.* TO someuser@'somehostname' IDENTIFIED BY 'password';
- FLUSH PRIVILEGES;
- mysql_connect('mysqlservername', 'someuser', 'password');
- $server = '192.168.0.3';
- $user = "foo";
- $password = "bar";
- $conn = mysql_connect($server, $user, $password);
- <?php mysql_connect('IP of 2nd computer', 'username', 'password'); ?>
Add Comment
Please, Sign In to add comment