LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-07-2009, 03:05 PM   #1
uiuiui172
Member
 
Registered: Jul 2009
Posts: 65

Rep: Reputation: 15
MySQL Problem!!!


Whenever i try to get and install mysql server 5.0 on ubuntu 9
this is what appears:

Code:
dylan@dylan-server:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  mysql-server-5.0
Suggested packages:
  tinyca mailx
The following NEW packages will be installed:
  mysql-server mysql-server-5.0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/23.6MB of archives.
After this operation, 79.5MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 124125 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb) ...
Aborting downgrade from (at least) 5.1 to 5.0.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.30really5.0.75-0ubuntu10.2_all.deb) ...
 * Stopping MySQL database server mysqld                                 [ OK ] 
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

How do I fix it?
 
Old 07-07-2009, 03:13 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

Welcome to LQ,

And why do you want to downgrade in the first place? Chances
are you'll break stuff if you succeed.


Cheers,
Tink
 
Old 07-08-2009, 12:03 PM   #3
uiuiui172
Member
 
Registered: Jul 2009
Posts: 65

Original Poster
Rep: Reputation: 15
What?
 
Old 07-08-2009, 12:25 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
dylan@dylan-server:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mysql-server-5.0
Suggested packages:
tinyca mailx
The following NEW packages will be installed:
mysql-server mysql-server-5.0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/23.6MB of archives.
After this operation, 79.5MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 124125 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb) ...
Aborting downgrade from (at least) 5.1 to 5.0.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.30really5.0.75-0ubuntu10.2_all.deb) ...
* Stopping MySQL database server mysqld [ OK ]
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

That. It really pays to read error messages.



Cheers,
Tink
 
Old 07-09-2009, 01:19 AM   #5
uiuiui172
Member
 
Registered: Jul 2009
Posts: 65

Original Poster
Rep: Reputation: 15
I had the same problem with 5.1!
 
Old 07-09-2009, 03:43 PM   #6
apt-shawn
LQ Newbie
 
Registered: Jul 2009
Location: Atlantic, IA, USA
Distribution: Debian and Mint
Posts: 12

Rep: Reputation: 1
uiuiui172,

What he is trying to say is you already have MySQL 5.1 installed. Have you been using it (do you have data stored in it?).

Shawn
 
Old 07-10-2009, 11:56 AM   #7
uiuiui172
Member
 
Registered: Jul 2009
Posts: 65

Original Poster
Rep: Reputation: 15
ok. I fixed that problem but now when I type in "mysql" it says "Access denied for user 'dylan'@'localhost' (using password: NO)"
 
Old 07-10-2009, 12:25 PM   #8
apt-shawn
LQ Newbie
 
Registered: Jul 2009
Location: Atlantic, IA, USA
Distribution: Debian and Mint
Posts: 12

Rep: Reputation: 1
uiuiui172,

Try this:

Code:
LOGIN AS ROOT:
mysql -u root -p

SEE IF YOU EXIST:
USE user;
SELECT name FROM user;

IF YOU DON'T SEE "dylan" IN THAT QUERY DO:
GRANT ALL PRIVILIGES ON [database name here].* TO 'dylan'@'localhost' IDENTIFIED BY '[password here]';
Note: You can also list which privileges you want to give too...refer to the MySQL documentation on what they are.

OTHERWISE TYPE:
exit;

THEN TRY:
mysql -u dylan -p

AND PUT IN YOUR PASSWORD.
Keep in mind this is the non-graphical client to MySQL. Check the user guide over at: www.mysql.com or refer to a MySQL book on how to use it.

Let me know if that helps.

Shawn
 
Old 07-10-2009, 01:05 PM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by apt-shawn View Post
Code:
SEE IF YOU EXIST:
USE user;
SELECT name FROM user;
Suppose that that must be
Code:
SEE IF YOU EXIST:
USE mysql;
SELECT name FROM user;
 
Old 07-10-2009, 02:36 PM   #10
apt-shawn
LQ Newbie
 
Registered: Jul 2009
Location: Atlantic, IA, USA
Distribution: Debian and Mint
Posts: 12

Rep: Reputation: 1
Quote:
Originally Posted by Wim Sturkenboom View Post
Suppose that that must be
Code:
SEE IF YOU EXIST:
USE mysql;
SELECT name FROM user;
Indeed! Thank you Don't have access to MySQL at work and was too lazy to take the trip to the docs myself :P

Thanks again,

Shawn
 
  


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
Bugzilla - MySQL - perl - DBD::mysql install problem amchargue Linux - Software 3 09-10-2008 12:01 AM
Problem Starting MySQL on Fresh Fedora 8 Install w/ Yum'd MySQL blong4life Linux - Server 2 07-04-2008 07:44 PM
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
php-mysql dependancy problem after nitemare mysql upgrade. RHEL4 andrewc Red Hat 1 01-03-2006 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 AM.

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