![]() ![]() Selecting previously unselected package mysql-server-5.5. │ Repeat password for the MySQL "root" user: │ New password for the MySQL "root" user: Package configuration If this field is left blank, the password will not be changed. While not mandatory, it is highly recommended that you set a password for the MySQL administrative "root" user. Get:1 wheezy/main mysql-server-5.5 armhf 5.5.31+dfsg-0+wheezy1 The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 14 not upgraded.Īfter this operation, 30.9 MB of additional disk space will be used. Rm: cannot remove `/var/lib/mysql': Permission sudo rm -rf sudo apt-get install mysql-server-5.5 Processing triggers for man-db rm -rf /var/lib/mysql Purging configuration files for mysql-server-5.5. 58655 files and directories currently installed.) The following packages were automatically installed and are no longer required:Ġ upgraded, 0 newly installed, 1 to remove and 14 not upgraded.Īfter this operation, 30.9 MB disk space will be freed. Putty sudo apt-get purge mysql-server-5.5 " Starting MySQL database server: mysqld. You could use the " mysql_secure_installation" command to secure your installation. Now you should have a basic MySQL installation. You should remove that data " rm -rf /var/lib/mysql" and then install mysql again " sudo apt-get install mysql-server-5.5". ![]() This is due to the data in /var/lib/mysql which belongs to the failed installation. If you would try to reinstall MySQL with " sudo apt-get install mysql-server-5.5" it would fail again. So you run " sudo apt-get purge mysql-server-5.5" and remove the mysql-server-5.5 package and all related files. Now " df -h" should tell you that the filesystem has much more free space.īut your MySQL installation failed. To stretch the filesystem to complete 4GB you need to run " sudo raspi-config" and choose the " expand_rootfs" option. This was done to make it fit on 2GB cards. This can be seen by running the " df -h" command. The reason for this is that the filesystem on the SD card will become full. Then if you try to install mysql with " sudo apt-get install mysql-server-5.5" this will fail. Always make sure you have backups of your important data.įirst you need to put the official Raspbian image on your SD card and then boot the Raspberry Pi. For those starting to learn MySQL and want to install it on a Raspberry Pi: there is a little gotcha you should be aware of.ĭisclaimer: Only run command if you know what it does. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |