Home > Database > Mysql Tutorial > body text

连接到MySQL实例管理器并创建用户账户_MySQL

WBOY
Release: 2016-06-01 13:55:56
Original
1002 people have browsed it

  使用MySQL客户端-服务器协议来处理同MySQL实例管理器之间的通信。你不能使用标准mysql客户端程序和MySQL C API来连接IM。IM支持客户端工具和mysql-4.1或以后的版本所分发的库所用的MySQL客户端-服务器协议版本。

  IM将用户信息保存到密码文件中。密码文件的默认位置为/etc/mysqlmanager.passwd。

  密码应类似于:

petr:*35110DC9B4D8140F5DE667E28C72DD2597B5C848

  要想生成密码用--passwd选项调用IM。则输出可以重定向到/etc/mysqlmanager.passwd文件以添加新用户。下面为示例命令。

./mysqlmanager --passwd >> /etc/mysqlmanager.passwd
Creating record for new user.
Enter user name: mike
Enter password:
Re-type password:

  下面的行将加到/etc/mysqlmanager.passwd:

mike:*00A51F3F48415C7D4E8908980D443C29C69B60C9

  如果/etc/mysqlmanager.passwd文件中没有该条,则不能连接IM。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!