In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
I believe many inexperienced people don't know what to do about how to install mysql in Ubuntu 14.04.Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Methods / steps
1. Update the source list
Open the Terminal window, enter "sudo apt-get update"-- > enter-- > enter the password of the root user-- > enter, and you can. If you do not run the command, install mysql directly, there will be "several packages cannot be downloaded, you can run apt-get update-" error message, resulting in unable to install.
2. Install mysql
Open the Terminal window, enter "sudo apt-get install mysql-server mysql-client"-- > enter-- > enter "y"-- > enter-- > enter the password of the "root" user in mysql in the package Settings dialog box-- > enter-- > enter the password again-- > enter, and the installation is complete.
3. How to judge whether mysql is installed successfully
Open the "Terminal window" and enter "sudo service mysql restart"-- > enter-- > if mysql starts successfully, it is running indicating that mysql is installed successfully.
4. Let apache support mysql
Open the Terminal window, type "sudo apt-get install libapache2-mod-auth-mysql"-- > enter-- > install successfully, and only after this module is installed, apache can support mysql.
5. Let php support mysql
Open the Terminal window, type "sudo apt-get install php5-mysql"-- > enter-- > install successfully, and only after this module is installed, php can support mysql.
6. Log in to mysql
Open the "terminal window" and enter "mysql-u root-p"-- > enter-- > enter the password of the "root" user in mysql-- > enter-- > login succeeded.
Add one more point: how does ubuntu14.04 uninstall mysql?
1. Delete the data file sudo rm / var/lib/mysql/-R2 of mysql, delete the configuration file of mqsql: sudo rm / etc/mysql/-R3, and automatically uninstall mysql program: sudo apt-get autoremove mysql*-- purgesudo apt-get remove apparmor
After reading the above, have you mastered how to install mysql in Ubuntu 14.04? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.