mysql远程连数据之经验总结(蛇年博客第一问,来自上海大雪的亲切问候)
mysql>grant all on test.* to lionbule@'%' identified by 'hello1234';mysql>flush privileges;
<?php
mysql_connect("192.168.1.101", "root", "") or die("Could not connect: " . mysql_error());
?>
D:\xampp\mysql\bin\mysql -h192.192.192.230 -uuserTest -p;
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.5.25a MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.