I just upgraded my MYSQL version from
5.5.40 to 5.6.22
but my PHPMYADMIN still show the same old version on Home Page
In terminal I checked version
mysql --version ==> 5.6.22
But when I check with "select version()" command inside Terminal and PHPMYADMIN
I got correct version 5.6.22
But on home page of PHPMYADMIN I get 5.5.40-0ubuntu0.14.04.1 - (Ubuntu)
In a post I read that there might be two mysql clients installed and may be phpmyadmin is referring to old client. If this is the case how can I delete old-client
Try removing php-mysql and installing php-mysqlnd. Will automatically done by following commands
sudo add-apt-repository ppa:nijel/phpmyadmin
sudo apt-get update
sudo apt-get install php5-mysqlnd
sudo apt-get --purge --reinstall install phpmyadmin
Or you can try reinstalling your phpmyadmin
Related
I had installed MySQL in my Ubuntu OS PC. But during the config setup, I had mistakenly set Disallow root login to Y. The MySQL Workbench was not able to connect. I accessed the config file from the terminal prompt:
sudo nano /etc/mysql/mysql.conf.d/mysql.cnf
I noticed that it did not have any config. It only had the following lines:
#The MySQL client configuration file
#Refer to https://dev.mysql.com/doc/refman/en/mysql-command-options.html
[mysql]
I entered the line
bind_address = 0.0.0.0
password = mypassword
But still unable to connect MySQL Workbench. From the terminal, I was now unable to login to MySQL
I tried to uninstall MySQL and reinstall it with the following commands:
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
The last command did not proceed with the configuration. I had hoped that I will be able to set the Disallow root login to Y.
How do I uninstall/ reinstall MySQL and have MySQL Workbench connect to it.
Here's how I solved my problem First I uninstalled MySQL (again). Next, I decided to install XAMMP. I followed the how-to steps in one online resource. I launched the XAMPP and was able to connect to localhost/phpmyadmin. I was able to create a database and table, and add a record
In Ubuntu 18.04 server, I use binary file to install zabbix4.0 according to the official website document of zabbix4.0, and I use MySQL 5.7.30 database. After installation, when I configure the front end of zabbix4.0,In the database configuration page, I only see one option of PostgreSQL, not mysql, as shown in the following figure:
In my server, I have installed MySQL version 5.7.30, and imported the data of ZABBIX 4.0 into the ZABBIX database, without any PostgreSQL installed
Excuse me, how can I make zabbix4.0 support MySQL 5.7.30 that I have installed? Thank you!
I installed zabbix4.0 according to the official documents:
https://www.zabbix.com/documentation/4.0/zh/manual/installation/install_from_packages/debian_ubuntu
This is my installation method:
# install zabbix
cd ~/download
wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-
release/zabbix-release_ 4.0-2+bionic_ all.deb
sudo dpkg -i zabbix-release_ 4.0-2+bionic_ all.deb
sudo apt-get update
#install Server/proxy/
sudo apt-get install -y zabbix-server-mysql
sudo apt-get install -y zabbix-frontend-php
With Ubuntu, you got two type of databases when donwloading Zabbix, PostgreSql and MySql. You need to re-download (I mean installation and configuration) Zabbix choosing MySql as database.
The following link could help Zabbix (Ubuntu) with MySql as database
The current version of the package is 4.0-3, so instead, you must do this :
Install repository
# wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-3+bionic_all.deb
# sudo dpkg -i zabbix-release_4.0-3+bionic_all.deb
# sudo apt update
Install server, frontend, agent
# sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
I'm going thru this instrucion, trying to keep data collected from DHT22 temperatur/humidity sensor on my RaspberryPi2 with Raspbian (Debian9) onboard.
But when it comes to install and use of the DB server, when i try to install MySQL, apt-get installs MariaDB.
From this and this link I know why, but i don't want to use MySQL name in my later scripts if my procedures really uses MariaDB.
So please tell my how change below commands to instal MariaDB directly, and login to DB interface without using MySQL name:
sudo apt-get install mysql-server python-mysqldb
mysql -u root -p -h localhost
With those commands MariaDb is the default install for Debain 9. So all you need to do now is
apt-get install phpmyadmin and mysql_secure_installation. Then you can login and access the interface at localhost/phpmyadmin
I am trying to connect to my Localhost using mysql workbench, but run into the " Cannot start SSH tunnel manager" every time. I have tried reinstalling workbench with apt-get. I also reinstalled python2.7 and imported paramiko.
Still doesn't work. I am running Ubuntu 14.10 64-bit.
Here is a screenshot of the error message when testing the connection.
http://i.imgur.com/wZIDVHo.png
I am happy to send over error logs, but I have no clue where to find them! ;)
I am using Apache2, phpmyadmin and mysql.
EDIT; I have also tried to run it with sudo-permissions. No change.
~ Thank you.
delete all your mysql installation previously and start new.
sudo apt-get remove --purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get update
sudo apt-get dist upgrade
if you install mysql workbench directly from Ubuntu software center, delete it, and install it using the .deb package at mysql website :http://dev.mysql.com/downloads/workbench/
How can I Upgrade MySQL version
Current MySQL Version: 5.5.40
Target MySQL Version: MySQL 5.7
OS: CentOS release 6.5 (Final)
Probably the quickest way is to dump your older DB version with mysqldump and restore it into 5.7 fresh DB.
How smooth the process goes, depends on how many dropped features in 5.7 you're using in 5.5.
In my case, the only feature, that was dropped in 5.7 was timestamp default '0000-00-00 00:00:00'
The fix for that was to run sed on dump file and replace ''0000-00-00 00:00:00' with CURRENT_TIMESTAMP
sed -i.bu 's/'\''0000-00-00 00:00:00'\''/CURRENT_TIMESTAMP/g' fixed_dumo.sql
Afterthat, the fixed_dump.sql was imported into fresh 5.7 DB and it worked smoothly.
I hope this helps.
The upgrade path is MySQL 5.5 -> MySQL 5.6 -> MySQL 5.7
See https://dev.mysql.com/doc/refman/5.7/en/upgrading.html
step 1 : take a backup
mysqldump --lock-all-tables -u root -p --all-databases > dump.sql
step 2 : remove old mysql
sudo apt-get remove mysql-server
sudo apt-get autoremove
step 3 : install new version of mysql 5.6
sudo apt-get install mysql-client-5.6 mysql-client-core-5.6
sudo apt-get install mysql-server-5.6
for 5.7
wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb
sudo dpkg -i mysql-apt-config_0.6.0-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server
step 4 : edit your data to address differences between versions (5.5 and 5.7)
If you have create table and timestamp(6) column is used than default values should be changed from CURRENT_TIMESTAMP to CURRENT_TIMESTAMP(6)
`event_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
step 5 : restore your data
mysql -u root -p < dump.sql
step 6 : Try to add a new db user. To validate and fix issues introduced from import of system tables like users (ERROR 1805 (HY000): Column count of mysql.user is wrong.)
mysql_upgrade -u root -p
I might be late to the party, but easy and fast solution without or minimal downtime could be AWS Database-Migration-Service, which can be used to upgrade your database to a different version as well as to some other server or RDS.
I have tried this and converted MySQL5.5 to MySQL5.7 on production without any downtime.
Here is a demo for the same - How To Migrate MySQL5.5 to MySQL5.7
Steps:
Set your current MySQL as master
Create a new instance/server with MySQL5.7 on it with required users
Got to AWS DatabaseMigrationService (DMS) and create a Replication
instance
After creating replication instance it will ask to fill up connection
detail to source(MySQL5.5) and target(MySQL5.7) databases.
Create task in DMS, which will be the logic on what basis you want to
migrate the data (particular database or particular table)
Start the task
When task is completed and data is in sync, just switch the DNS entry
pointing to MySQL5.5 to MySQL5.7
Yes. From a "logical upgrade" you can migrate from 5.5 for 5.7. This way: 5.5 -> 5.6 -> 5.7, is necessary only for "in place" upgrade, with data folder.
See: https://www.percona.com/forums/questions-discussions/mysql-and-percona-server/43956-what-is-the-preferred-mysql-upgrade-path-5-5-to-5-7
Fallow Simple Steps for Upgrade Mysql Version 5.5 to 5.7 .
wget http://dev.mysql.com/get/mysql-apt-config_0.8.0-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.0-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server
After a bunch of failed attempts I have concluded it down to:
To upgrade from 5.5, go to 5.6 first and then to 5.7
Save the datafolders and install a fresh installation of 5.7
Both need the apt-config mentioned in all above comments.
The kicker is to run sudo apt install mysql-**community**-server
in Mysql,
step 1: fetch version,
wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
step 2:
rpm -ivh mysql57-community-release-el7-9.noarch.rpm
step 3:
check available mysql repo,
yum repolist all | grep mysql
will get something like below,
mysql55-community/x86_64 MySQL 5.5 Community Server disabled
mysql55-community-source MySQL 5.5 Community Server - S disabled
mysql56-community/x86_64 MySQL 5.6 Community Server disabled
mysql56-community-source MySQL 5.6 Community Server - S disabled
mysql57-community/x86_64 MySQL 5.7 Community Server enabled: 384
mysql57-community-source MySQL 5.7 Community Server - S disabled
Its preferred to upgrade one by one,
so first upgrade into mysql 5.5 into mysql5.6
step 4: first enable to mysql 5.6 and disable mysql 5.5 and 5.7
sudo yum-config-manager --enable mysql56-community
sudo yum-config-manager --disable mysql55-community
sudo yum-config-manager --disable mysql57-community
step 5: before upgrade stop service,
sudo systemctl stop mysql
step 6: Lets ready to upgrade,
yum update
you are successfully upgrade into mysql5.6
now repeat step 4 to 6 to upgrade into 5.7
sudo yum-config-manager --disable mysql56-community
sudo yum-config-manager --enable mysql57-community
and then
yum update
mysql --version
successfully upgraded into mysql 5.7 dont forgot restart service,
systemctl start mysql
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server-5.6