打开mysqladmin的config文件修改如下信息
$cfg['Servers'][$i]['host'] = 'localhost';
['Servers'][$i]['user'] = 'username';
$cfg['Servers'][$i]['password'] = 'password';将localhost改为服务器管理员给你的IP地址,username改为服务器的数据库用户名,password该服务器的数据库密码好了,你就可以跟本地数据库一样操作了,而且你也可以把本地的数据导成SQL文件,然后导入到服务器。
$cfg['Servers'][$i]['host'] = 'localhost';
['Servers'][$i]['user'] = 'username';
$cfg['Servers'][$i]['password'] = 'password';将localhost改为服务器管理员给你的IP地址,username改为服务器的数据库用户名,password该服务器的数据库密码好了,你就可以跟本地数据库一样操作了,而且你也可以把本地的数据导成SQL文件,然后导入到服务器。
or
config.php
or
config.inc.php3
or
config.php3
很多mysql服务为了安全只允许本地连接,就是mysql数据库里的user表的host字段为localhost
如果host字段为%就允许所有的连接
打开mysqladmin的config文件修改如下信息
$cfg['Servers'][$i]['host'] = 'localhost';
['Servers'][$i]['user'] = 'username';
$cfg['Servers'][$i]['password'] = 'password';将localhost改为服务器管理员给你的IP地址,username改为服务器的数据库用户名,password该服务器的数据库密码好了,你就可以跟本地数据库一样操作了,而且你也可以把本地的数据导成SQL文件,然后导入到服务器。