简体   繁体   English

不同操作系统中的服务器mysql中的数据库'mysql'

[英]Database 'mysql' in the server mysql in different OS

I will explain my situation, my project is an interface in java that can user to log in mysql database, so in this interface, the user must enter the login, password and host(of user in mysql) so the program authenticates by the user root to DB 'mysql' (exist in windows version of mysql) and looking if the user existed in the table user of DB 'mysql'. 我将解释我的情况,我的项目是java中的一个界面,用户可以登录mysql数据库,因此在该界面中,用户必须输入登录名,密码和主机(mysql中的用户),以便程序由用户进行身份验证根目录到数据库“ mysql”(存在于Windows的mysql版本中),并查看该用户是否存在于数据库“ mysql”的表用户中。 my question here is: do this database and the table user exist also in linux version so that i can use my project in different OS. 我的问题是:这个数据库和表用户是否也存在于linux版本中,以便我可以在不同的OS中使用我的项目。 the second question in this table (user) i found that the password is in code ASCII i want to do test if this password equals to the password ented by the user to authenticate to my project.best regards 该表(用户)中的第二个问题我发现密码是ASCII代码,我想测试此密码是否等于用户为验证我的项目而输入的密码。

The user table exists in all versions of mysql. 用户表存在于所有版本的mysql中。 You would need to create the users in the linux database when you switch to linux. 切换到linux时,需要在linux数据库中创建用户。 How to create a user is available in this link http://dev.mysql.com/doc/refman/5.0/en/create-user.html 此链接中提供了如何创建用户的信息http://dev.mysql.com/doc/refman/5.0/en/create-user.html

You can compare the password as plain text unless you encrypt it. 您可以将密码作为纯文本进行比较,除非对其进行加密。 I think it should work fine. 我认为应该可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM