If after that the system cannot connect to mysql server you need to restart your computer. Here's the option that you should accept: Then press (Y)es and the aptitude is going to install the mysql-server-5.6. So press (N)o until you find the option that say to downgrade the next packages: libmysqlclient20 [5.7.14-1ubuntu16.04 (, now) -> 5.7.13-0ubuntu0.16 The first options is to keep the actual package. The aptitude give you a lot of option, what to do. Next you need to install the package that you want. If you don't have aptitude you can get it like this: sudo apt-get install aptitudeįirst all you need to uninstall your existing mysql. So I thought to install it with the Aptitude that install a package and correct all the dependencies. And I had a lot of problems with libdbd-mysql-perl the system said that was not going to install that library. Socket = /usr/local/mysql/data/mysqld.I had the same problem, and I tried a lot of options. cnf files there, so if you need stuff like sockets or anything else, you can put my.cnf in /usr/local/mysql/ and any regular directives there, for example: If you have followed above tutorial, then your mysql base dir is /usr/local/mysql/ and it would seek. Shell> cp support-files/rver /etc/init.d/rver Shell> bin/mysqld -initialize -user=mysql Shell> ln -s full-path-to-mysql-VERSION-OS mysql Shell> useradd -r -g mysql -s /bin/false mysql Sudo dpkg -i mysql-testsuite_5.7.30-1ubuntu18.04_bĪfter a lot of struggle I've managed to install and use it in the following way,įrom mysql download archive, download generic 5.7, it's best if you first navigate to /usr/local/ so sudo su Sudo dpkg -i mysql-community-server_5.7.30-1ubuntu18.04_b Sudo dpkg -i mysql-client_5.7.30-1ubuntu18.04_b MySQL Community Edition is a freely downloadable version of the worlds most popular open source database that is supported by an active community of open source developers and enthusiasts. Sudo dpkg -i mysql-community-client_5.7.30-1ubuntu18.04_b Sudo dpkg -i mysql-community-source_5.7.30-1ubuntu18.04_b If :tag is omitted, the latest tag is used, and the image for the latest GA version of MySQL Server is downloaded. Sudo dpkg -i libmysqld-dev_5.7.30-1ubuntu18.04_b To download the MySQL Community Edition image, run this command: shell> docker pull mysql/mysql-server:tag Refer to the list of supported tags above. I think the order is : sudo dpkg -i mysql-common_5.7.30-1ubuntu18.04_b Package: mysql-serverįirst I removed mysql from my pc remove Mysql Prevent upgrading to MySQL 8 - thanks to NSwanson7 in this post sudo nano /etc/apt/preferences.d/mysqlĪdd the following content in the above created file. I used the following to secure the MySQL installation Sudo apt install -f mysql-server=5.7.30-1ubuntu18.04 Sudo apt install -f mysql-community-server=5.7.30-1ubuntu18.04 sudo apt install -f mysql-client=5.7.30-1ubuntu18.04 Then I traced my steps backwards - installed mysql-community-server and then mysql-server. I tried to install this one, and it worked. I tried installing the later, it failed again, requesting mysql-client. Basically, I tried installing mysql-server - it failed requesting mysql-community-server. Otherwise errors similar to the ones in my original question, are displayed. I don't know why, but without the following, it gave an error while installing mysql-community-server and failed. Run the command bellow and select MySQL 5.7 from the list: sudo dpkg-reconfigure mysql-apt-config Sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb This commented out all entries in /etc/apt//mysql.list (created according to Kulfy's answer in this post) So, I installed mysql-apt-config as a helper. As you will see, I don't understand why some things worked and some didn't. I managed to make it work! I am not an experienced Linux user, therefore please feel free to comment/edit/improve my answer. I also tried the suggestions in this post and also this one (what I thought could work).Ĭan you please point me in the right direction? Mysql-server : Depends: mysql-server-5.7 but it is not going to be installedĮ: Unable to correct problems, you have held broken packages. The following packages have unmet dependencies: The following information may help to resolve the situation: Requested an impossible situation or if you are using the unstableĭistribution that some required packages have not yet been created The output of the above command is: Reading package lists. I used the following command to install mysql-server. The output of apt-cache policy mysql-server I was able to install mysql-client, but not mysql-server. I followed Kulfy's steps in this post to install MySQL 5.7 on Ubuntu 20.04. I am trying to install MySQL 5.7 on a fresh Ubuntu 20.04 installation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |