473,387 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

can't install / uninstall MySQL

pc
hi everyone,

we have a server on which someone blew away the MySQL 4 progs directory
before installing MySQL 5. When installing MySQL 5 the installation
failed with an error stating that it was unable to create system tables
as the MySQL 4 directory did not exist.

We are now unable to uninstall MySQL 5:

[root@server1 local]# rpm -i
MySQL-server-standard-5.0.18-0.rhel3.i386.rpm
warning: MySQL-server-standard-5.0.18-0.rhel3.i386.rpm: V3 DSA
signature: NOKEY, key ID 5072e1f5
package MySQL-server-standard-5.0.18-0.rhel3 is already
installed

[root@server1 local]# rpm -e
MySQL-server-standard-5.0.18-0.rhel3.i386.rpm
error: package MySQL-server-standard-5.0.18-0.rhel3.i386.rpm is not
installed

Help!

TIA

eddiec :-)

Jan 12 '06 #1
2 6088
pc
problem solved, just recreated the missing directories

eddiec :-)

Jan 12 '06 #2
pc
hi everyone,

I managed to uninstall MySQL 5 (just removed the rpm from the end of
rpm -e). but I can't remove MySQL 4 (rpm says it's not installed, maybe
this was a manual installation). When I try to install MySQL 5 this is
what we get:

[root@server1 local]# rpm -i
MySQL-server-standard-5.0.18-0.rhel3.i386.rpm
warning: MySQL-server-standard-5.0.18-0.rhel3.i386.rpm: V3 DSA
signature: NOKEY, key ID 5072e1f5
mkdir: cannot create directory
`/usr/local/mysql-standard-4.0.22-pc-linux-i686/d ata': No
such file or directory
chmod: failed to get attributes of
`/usr/local/mysql-standard-4.0.22-pc-linux-i6 86/data': No
such file or directory
mkdir: cannot create directory
`/usr/local/mysql-standard-4.0.22-pc-linux-i686/d ata/mysql':
No such file or directory
chmod: failed to get attributes of
`/usr/local/mysql-standard-4.0.22-pc-linux-i6 86/data/mysql':
No such file or directory
mkdir: cannot create directory
`/usr/local/mysql-standard-4.0.22-pc-linux-i686/d ata/test':
No such file or directory
chmod: failed to get attributes of
`/usr/local/mysql-standard-4.0.22-pc-linux-i6 86/data/test':
No such file or directory
chown: failed to get attributes of
`/usr/local/mysql-standard-4.0.22-pc-linux-i6 86/data': No
such file or directory
chown: failed to get attributes of
`/usr/local/mysql-standard-4.0.22-pc-linux-i6 86/data/mysql':
No such file or directory
chown: failed to get attributes of
`/usr/local/mysql-standard-4.0.22-pc-linux-i6 86/data/test':
No such file or directory
060112 11:39:37 [Warning] Can't create test file
/usr/local/mysql-standard-4.0.2
2-pc-linux-i686/data/server1.lower-test
/usr/sbin/mysqld: Can't change dir to
'/usr/local/mysql-standard-4.0.22-pc-linux -i686/data/'
(Errcode: 2)
060112 11:39:37 [ERROR] Aborting

060112 11:39:37 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/bin/mysql_create_system_tables: line 766: 8170 Broken pipe
cat <<END_OF_DATA
use mysql;
set table_type=myisam;
$c_d
$i_d

$c_h
$i_h

$c_u
$i_u

$c_f
$i_f

$c_t
$c_c

$c_ht
$c_hc
$c_hr
$c_hk

$c_tzn
$i_tzn
$c_tz
$i_tz
$c_tzt
$i_tzt
$c_tztt
$i_tztt
$c_tzls
$i_tzls

$c_p
$c_pp

END_OF_DATA

Installation of system tables failed!

Examine the logs in /usr/local/mysql-standard-4.0.22-pc-linux-i686/data
for more information.
You can also try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
You can use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:

shell> /usr/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /usr/local/mysql-standard-4.0.22-pc-linux-i686/data
that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running
mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
Starting MySQL................................... ERROR!

It can't open the MySQL 4 directory as this has been deleted.

eddiec :-)

Jan 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
0
by: CK Wong | last post by:
When I try to repair, change config, install and uninstall an existing VB.NET 2K3, it gave me the following error in the file vserror71.txt: Visual Basic .NET Standard 2003 - English: ...
7
by: tony | last post by:
Hi Any one know that can VS.net 2005 with vs.net 2003 worked together in one manchine? if it can working together, how can I set up it? Thanks Tony
3
by: Nick | last post by:
hi, all I have a red hat 9 and looks like it had mysql 3.2.54 installed before, but, actually not, i can not find the install folder and I can not uninstall it. So I am trying to install/upgrade...
0
by: DaveHenrie | last post by:
I had VB Studio.net installed on this machine in the past. However, my version be corrupted somehow. Therefore, I uninstalled .net using the Windows Install/uninstall utility. I only was able to...
0
by: John Richardson | last post by:
When it rains, it pours. I have an installer I built within VS, and when you click install within the IDE, it unistalls the previous version for you, very conventient, but it means that alot...
3
by: Chris Wagner | last post by:
Anyone knows how to install/unistall service with VB.NET without using InstallUtil program? Thanks
2
by: John Keers | last post by:
Hi Can anyone tell me how you run multiple msi's or install programs from a single msi. I'm using VS2005? Thanks
0
by: Larry Rebich | last post by:
Recently I have encountered a number of problems using VS2005 Standard Edition. For some unknown reason I am not able to load any project anymore. I've been using the product for some months. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.