首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

mysql远程连数据之经验总结(蛇年博客第一问,来自下海大雪的亲切问候)

2013-02-25 
mysql远程连数据之经验总结(蛇年博客第一问,来自上海大雪的亲切问候)mysqlgrant allon test.* to lionbul

mysql远程连数据之经验总结(蛇年博客第一问,来自上海大雪的亲切问候)

mysql>grant all  on test.* to lionbule@'%' identified by 'hello1234';mysql>flush privileges;

php测试一番


<?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.

1楼bonlog5天前 10:33
D:\xampp\mysql\bin\mysql -h192.192.192.230 -uuserTest -p;nEnter password: ********nWelcome to the MySQL monitor. Commands end with ; or \g.nYour MySQL connection id is 11nServer version: 5.5.25a MySQL Community Server (GPL)nnCopyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.nnOracle is a registered trademark of Oracle Corporation and/or itsnaffiliates. Other names may be trademarks of their respectivenowners.nnType 'help;' or '\h' for help. Type '\c' to clear the current input statement.

热点排行