In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In this article, we will take a look at common problems and solutions to mysql during development. There is a certain reference value, friends in need can refer to, hope to help you.
Remote connection issu
Mysql default connection can only be given locally (localhost or 127.0.0.1). If you want an ip address to access mysql, you need to enable this permission manually.
Methods:
● enters the terminal
● assigns new users
Grant all privileges on *. * to 'username' @'IP address' identified by 'password'
● refresh permissions
Flush privileges
If you want all machines on the local area network to connect to the mysql database, execute the following command
Grant all privileges on *. * to 'username' @'% 'identified by' password 'with grant option
● all privileges refers to all permissions, or can be written as select,utdate, etc.
● *. * refers to all tables in the database
● IP address: IP address allowed to connect,% is allowed for all machines in the LAN
Reserved word problem
Reserved words like index in mysql should be avoided in development. If index is used, the sql uses anti-single quotation marks to handle ``(the key under Esc).
Table case problem
In windows, mysql is not case-sensitive, but in linux, mysql is case-sensitive, and in linux, mysql is case-insensitive:
● login with root, modify / etc/my.cnf
● adds a line under [mysqld]: lower_case_table_names=1
● restart mysql
The above is a brief introduction to the common problems and solutions of mysql in the development process. Of course, the differences in the detailed use of the above have to be understood by everyone. If you want to know more, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.