In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how linux enters the mysql command line. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
How does linux enter the mysql command line?
Format:
Mysql-h host address-u user name-p user password
It can be divided into two situations:
1. Connect to the MYSQL on this machine
Generally, you can type commands directly.
Mysql-uroot-p
Enter prompts you to enter your password. If you have just installed MYSQL, the superuser root does not have a password, so you can enter MYSQL directly by pressing enter. The prompt for MYSQL is: mysql >
2. Connect to the MySQL on the remote host
Suppose the IP of the remote host is 10.0.0.1, the user name is root, and the password is 123. Type the following command:
Mysql-h20.0.0.1-uroot-p123
(note: U and root do not have to add spaces, and so do others)
How do I exit the MySQL command?
Exit (enter) Thank you for reading! So much for sharing the method of linux entering the mysql command line. I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.