{"id":3406,"date":"2012-06-11T22:41:11","date_gmt":"2012-06-11T14:41:11","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3406"},"modified":"2023-06-27T06:31:40","modified_gmt":"2023-06-27T06:31:40","slug":"how-to-install-mysql-server-on-ubuntu-11-10","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-mysql-server-on-ubuntu-11-10\/","title":{"rendered":"How to Install MySQL Server on Ubuntu 11.10"},"content":{"rendered":"<p>Ubuntu 11.10 is an old version of the Ubuntu operating system, but it is still in use in some environments. MySQL is a popular relational database management system that is widely used for web applications. In this guide, we will show you how to install MySQL server on Ubuntu 11.10.<\/p>\n<h2>Step 1: Update the Package List<\/h2>\n<p>The first step is to update the package list by running the following command in your terminal:<\/p>\n<pre>sudo apt-get update<\/pre>\n<p>This command will download the latest package information from the Ubuntu repositories.<\/p>\n<h2>Step 2: Install MySQL Server<\/h2>\n<p>Next, you need to install the MySQL server package by running the following command:<\/p>\n<pre>sudo apt-get install mysql-server<\/pre>\n<p>This command will download and install the MySQL server package along with its dependencies. During the installation process, you will be prompted to set a password for the MySQL root user.<\/p>\n<pre>ehowstuff@ehowstuff:~$ sudo apt-get install mysql-server\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nThe following extra packages will be installed:\r\n  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl\r\n  libplrpc-perl mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server-5.1\r\n  mysql-server-core-5.1\r\nSuggested packages:\r\n  libipc-sharedcache-perl libterm-readkey-perl tinyca mailx\r\nThe following NEW packages will be installed:\r\n  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl\r\n  libplrpc-perl mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1\r\n  mysql-server-core-5.1\r\n0 upgraded, 12 newly installed, 0 to remove and 79 not upgraded.\r\nNeed to get 22.5 MB of archives.\r\nAfter this operation, 54.5 MB of additional disk space will be used.\r\nDo you want to continue [Y\/n]? y\r\nGet:1 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric-updates\/main mysql-common all 5.1.62-0ubuntu0.11.10.1 [11.8 kB]\r\nGet:2 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric\/main libnet-daemon-perl all 0.48-1 [43.1 kB]\r\nGet:3 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric\/main libplrpc-perl all 0.2020-2 [36.0 kB]\r\nGet:4 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric\/main libdbi-perl i386 1.616-1build1 [852 kB]\r\nGet:5 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric-updates\/main libmysqlclient16 i386 5.1.62-0ubuntu0.11.10.1 [1,805 kB]\r\nGet:6 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric\/main libdbd-mysql-perl i386 4.019-1 [110 kB]\r\nGet:7 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric-updates\/main mysql-client-core-5.1 i386 5.1.62-0ubuntu0.11.10.1 [88.3 kB]\r\nGet:8 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric-updates\/main mysql-client-5.1 i386 5.1.62-0ubuntu0.11.10.1 [8,602 kB]\r\nGet:9 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric-updates\/main mysql-server-core-5.1 i386 5.1.62-0ubuntu0.11.10.1 [4,632 kB]\r\nGet:10 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric-updates\/main mysql-server-5.1 i386 5.1.62-0ubuntu0.11.10.1 [6,259 kB]\r\nGet:11 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric\/main libhtml-template-perl all 2.10-1 [65.0 kB]\r\nGet:12 http:\/\/sg.archive.ubuntu.com\/ubuntu\/ oneiric-updates\/main mysql-server all 5.1.62-0ubuntu0.11.10.1 [6,406 B]\r\nFetched 22.5 MB in 3min 14s (116 kB\/s)\r\nPreconfiguring packages ...\r\nSelecting previously deselected package mysql-common.\r\n(Reading database ... 68437 files and directories currently installed.)\r\nUnpacking mysql-common (from ...\/mysql-common_5.1.62-0ubuntu0.11.10.1_all.deb) ...\r\nSelecting previously deselected package libnet-daemon-perl.\r\nUnpacking libnet-daemon-perl (from ...\/libnet-daemon-perl_0.48-1_all.deb) ...\r\nSelecting previously deselected package libplrpc-perl.\r\nUnpacking libplrpc-perl (from ...\/libplrpc-perl_0.2020-2_all.deb) ...\r\nSelecting previously deselected package libdbi-perl.\r\nUnpacking libdbi-perl (from ...\/libdbi-perl_1.616-1build1_i386.deb) ...\r\nSelecting previously deselected package libmysqlclient16.\r\nUnpacking libmysqlclient16 (from ...\/libmysqlclient16_5.1.62-0ubuntu0.11.10.1_i386.deb) ...\r\nSelecting previously deselected package libdbd-mysql-perl.\r\nUnpacking libdbd-mysql-perl (from ...\/libdbd-mysql-perl_4.019-1_i386.deb) ...\r\nSelecting previously deselected package mysql-client-core-5.1.\r\nUnpacking mysql-client-core-5.1 (from ...\/mysql-client-core-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) ...\r\nSelecting previously deselected package mysql-client-5.1.\r\nUnpacking mysql-client-5.1 (from ...\/mysql-client-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) ...\r\nSelecting previously deselected package mysql-server-core-5.1.\r\nUnpacking mysql-server-core-5.1 (from ...\/mysql-server-core-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) ...\r\nProcessing triggers for man-db ...\r\nSetting up mysql-common (5.1.62-0ubuntu0.11.10.1) ...\r\nSelecting previously deselected package mysql-server-5.1.\r\n(Reading database ... 68814 files and directories currently installed.)\r\nUnpacking mysql-server-5.1 (from ...\/mysql-server-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) ...\r\nSelecting previously deselected package libhtml-template-perl.\r\nUnpacking libhtml-template-perl (from ...\/libhtml-template-perl_2.10-1_all.deb) ...\r\nSelecting previously deselected package mysql-server.\r\nUnpacking mysql-server (from ...\/mysql-server_5.1.62-0ubuntu0.11.10.1_all.deb) ...\r\nProcessing triggers for man-db ...\r\nProcessing triggers for ureadahead ...\r\nureadahead will be reprofiled on next reboot\r\nSetting up libnet-daemon-perl (0.48-1) ...\r\nSetting up libplrpc-perl (0.2020-2) ...\r\nSetting up libdbi-perl (1.616-1build1) ...\r\nSetting up libmysqlclient16 (5.1.62-0ubuntu0.11.10.1) ...\r\nSetting up libdbd-mysql-perl (4.019-1) ...\r\nSetting up mysql-client-core-5.1 (5.1.62-0ubuntu0.11.10.1) ...\r\nSetting up mysql-client-5.1 (5.1.62-0ubuntu0.11.10.1) ...\r\nSetting up mysql-server-core-5.1 (5.1.62-0ubuntu0.11.10.1) ...\r\nSetting up mysql-server-5.1 (5.1.62-0ubuntu0.11.10.1) ...\r\nmysql start\/running, process 2687\r\nSetting up libhtml-template-perl (2.10-1) ...\r\nSetting up mysql-server (5.1.62-0ubuntu0.11.10.1) ...\r\nProcessing triggers for libc-bin ...\r\nldconfig deferred processing now taking place\r\n<\/pre>\n<h2>Step 3: Secure the MySQL Installation<\/h2>\n<p>After the installation is complete, it is recommended to run the following command to secure the MySQL installation:<\/p>\n<pre>sudo mysql_secure_installation<\/pre>\n<p>This command will prompt you to answer a series of questions to secure the MySQL installation. You will be prompted to set a password for the MySQL root user, remove anonymous users, disallow root login remotely, remove the test database, and reload the privilege tables.<\/p>\n<h2>Step 4: Start the MySQL Service<\/h2>\n<p>Finally, you need to start the MySQL service by running the following command:<\/p>\n<pre>sudo service mysql start<\/pre>\n<p>This command will start the MySQL service and enable it to start automatically on system boot.<\/p>\n<h2>Commands Mentioned:<\/h2>\n<ul>\n<li><span class=\"fw-bold\">sudo apt-get update<\/span> &#8211; Update the package list<\/li>\n<li><span class=\"fw-bold\">sudo apt-get install mysql-server<\/span> &#8211; Install MySQL server<\/li>\n<li><span class=\"fw-bold\">sudo mysql_secure_installation<\/span> &#8211; Secure the MySQL installation<\/li>\n<li><span class=\"fw-bold\">sudo service mysql start<\/span> &#8211; Start the MySQL service<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>In this guide, we have shown you how to install MySQL server on Ubuntu 11.10. By following these steps, you can install MySQL and secure the installation. MySQL is now ready to use, and you can start creating databases and users to store and manage your data. We hope this guide has been helpful to you.<\/p>\n<p>If you have any comments or suggestions for improvements, please feel free to share them below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 11.10 is an old version of the Ubuntu operating system, but it is still in use in some environments. MySQL is a popular relational database management system that is&#8230;<\/p>\n","protected":false},"author":6,"featured_media":343,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1073],"tags":[1585],"class_list":["post-3406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-mysql"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3406"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3406\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/343"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}