LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2017, 12:10 AM   #1
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Rep: Reputation: Disabled
MySQL Install help


All,

I'm running Kubuntu 14.04 LTS and a client needed MySQL 7+ for a project. I had upgraded MySQL before and these older upgrades never had issues and had no issues of back version support, but after the 7+ install I can no longer login, via phpMyAdmin nor MySQL WorkBench. I've read and there is no back version support from 7 to older version, due to login changes.

I found out after installing that older version support is not possible from MySQL 7, as they made changes to the logins to increase security so not able to use older code/methods on the new and Vice-versa.

Therefore I need to know how to:
  1. Remove the current installation,
  2. Install MySQL 6+ (supported version for 14.04)
  3. Install MySQL 7+ as separate install with separate install folders.
The separate install folders will be critical, to avoid the 7+ install writing over the 6+ version.

Hope someone knows howto do this!

All help appreciated!

Thnx!

TBNK

Last edited by TBotNik; 12-20-2017 at 12:15 AM.
 
Old 12-20-2017, 12:17 AM   #2
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
PS:

Will also have to install phpMyAdmin 4.6.7 that support MySQL 7+ into separate folders as well, so I can create a seperate Apache alias, to be able to switch between the 2 separate versions.

Cheers!

TBNK
 
Old 12-22-2017, 07:32 AM   #3
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Can I get some help here?
 
Old 12-22-2017, 02:40 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
When I last upgraded MySQL I had to run a supplied upgrade script over the databases because the format had changed. That was a move to version 5.7 from a much older version. Was that a required step in your upgrade? Did you do that?
I also had to install a newer version of phpMyAdmin and reconfigure it manually.
 
Old 12-22-2017, 05:53 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Help? Yes Help! Here and Hear
Google fed me these search queries:

apt-get install to a specific directory #and
sudo apt-get install package=version

sudo apt-get install package=version
mysql-server and some custom keyboard kung.fu
https://stackoverflow.com/questions/...tion-directory

Maybe consider a container as a possibility? "perfect for 'projects'"
Docker - requires 64 bit Architecture still, I believe.
Simple bash script installs it. Grab an image. (A "pull") Start it.
Couple of coats of paint and a wing-nut, you'll be right-as-rain

With less complexity than your method above??? And doesn't turn your 14.04 LTS into a Toaster
That is my advice.
The MySql DEVs seem to have expected us!
Deploying MySQL on Linux with Docker

I wish I had the vigor and/or motivation to encourage you with your plan. Scares me to death.

.deb files have 2 control files in them. They hold the installation parameters for the package.deb and some other high-level directives necessary for the package Manager.

Install 7 to /opt? - maybe
https://dev.mysql.com/doc/mysql-inst...on-debian.html
has the specifics of The MySQL Installation Guide.

Have a Good Night.
 
Old 12-26-2017, 12:12 PM   #6
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Additional Info

All,

Because of the MySQL conflicts on my machine, twice on every single time I call for "apt-get install" of anything, it always runs through the MySQL 7 install (twice).

The fresh install always resets all UIDs to only "root" and none of my 3,000+ DBs have root as UID, so can't see them. Then when I finally get MySQL WorkBench to use my default UID, I see my DBs only to have the next apt-get install wipe out all my work.

Now I can't even remember what I had to do to get back my default UID. Think I had to do it via cmd line.

Cheers!

TBNK

Last edited by TBotNik; 12-26-2017 at 12:25 PM.
 
Old 12-26-2017, 12:26 PM   #7
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Guru's at #mysql on irc.freenode.net are also recommending Docker. Wheref's a good HOWTO on this?

Cheers!

TBNK
 
Old 12-26-2017, 01:56 PM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,901

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
probably here: http://training.play-with-docker.com/ or check youtube.
 
Old 12-26-2017, 10:41 PM   #9
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Finally found and resolved the issues, got Ubuntu 14.04 default MySQL installed, then LXD, and the 16.04 MySQL 7.5 in the LXD container, but that does not launch and stay callable by default localhost apps. Still trying to figure out how to launch this on boot and make it callable from localhost.

Cheers!

TBNK
 
Old 05-03-2020, 11:40 AM   #10
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Followup

All,

Only relevant to 14.04, so solvee!

TBNK
 
Old 05-06-2020, 04:51 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by TBotNik View Post
Only relevant to 14.04, so solvee!
Unsurprisingly, after 2.5 years.
TBotNik, bumping is frowned upon, necrobumping doubly so.
Quote:
Originally Posted by LQ Rules
Threads should not be manually bumped without including additional information.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get install mysql-server mysql-clinet libmysqlclient-dev lqu17 Linux - Newbie 6 10-13-2017 06:14 PM
Problem with MySQL install on virt CentOS,no /var/lib/mysql/mysql.sock , systemctl start mysqld.service dont run the service Positive1 CentOS 1 08-13-2016 03:33 AM
[SOLVED] yum install php-mysql create problem to my running mysql database jsaravana87 Linux - Server 1 08-11-2011 03:24 AM
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 10:32 AM
MySQL 5.0.67: Unable to install & run. Error /var/lib/mysql/mysql.sock' (2) peteyperson Linux - Server 2 03-04-2009 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration