Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    MYSQL




Uninstall In Order To Restart


I installed mySQL on my Mac and it worked fine. But when I went to start up the mySQL monitor through the mySQL preferences pane it did not work. Then I installed it again which completely messed it up.

I then proceeded to delete all of the files located at /usr/local/ and tried to reinstall it. This did not help because when I tried to start up mySQL in system preferences I still got a message saying

"You cannot open mySQL preferences pane on this computer. Contact the developer of this software for a newer version."

I was hoping to simply completely uninstall mySQL and start from scratch or if anyone has another idea I am open to suggestions.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Uninstall &
How can i delete all database and have a fresh database? (reset root & delete all user account too)
I've tried "rpm -e mysql-server' and install mysql-server again, but the databases are still there. The server is Red Hat enterprise.

Uninstall
For some reason,I am not able tin uninstall the 5.0.0-alpha, Windows can not find Uninst.isu
I can not find any site that has this particular package, even MySQL's site for older versions does not have this version. If I install a newer 5.x release, it doesnt fix the unisntall issue.
Anyone knowof a mirror or location of the 5.0.0 -alpha for WinXP so I can re-install adn un-install

Uninstall MSSQL?
I've had a few problems with my first attempt at installing MySQL - I can't seem to get the PC to connect with MySQL. I did notice that an SQL Server was running in the SQL Server Service Manager panel. It's a NetSDK - MSSQL Server thing.

Do I need to unistall that before MySQL will work properly?

Uninstall MyODBC
How do I uninstall myODBC from wind98? everything was working, then badness at the shop so... I have reloaded wind98,mySQL now mySQL works OK but I cant setup myODBC (setup says myODBC installed ok but when I try to make data source it says drivers no good, reinstall...

looks to me like I need to uninstall, but myODBC has no uninstall Alas! does anyone know whaich registry entries to delete?

Uninstall MySQL 5 On Mac OS X
I have installed mysql 5 on my mac and now I can't uninstall it or at
least I don't know how to. The reason for the uninstall is I want to
use MySQL 4 (which is already on my Mac...I forgot about it when I
installed MySQL 5).

How To Uninstall MySQL 5.0
-- I downloaded MySQL 5.0 thinking it would only make things smoother for me, since updated versions include bug fixes, and smoother operation. I quickly found out that I shot my self in the foot by doing this. The book teaches you as if your only using the previous version, this isn't that big of a deal, but when I'm just starting out, I need to follow the book exactly word for word for *me* to learn it properly.

-- So far, I've tried the following to remove MySQL 5.0 so I can go back and install MySQL 4.0.20.

1. I moved my MySQL folder from C:Program filesMysqlMysql 5.0 serverin to C:MySQL (I had some DOS problems and had to move it in order to fix that problem).

2. It was after fixing this DOS problem that I realized I needed to remove 5.0 and get 4.0.20. I tried to do an add/remove programs, and it simply removed MySQL server 5.0 from my "add or remove programs" list, but all my MySQL files were still there (Most likely because I changed directories without knowing it would effect uninstallation).

3. Next, as more or less an experiment, I installed MySQL 5.0 again in the original directory (C:Program filesMysqlMysql 5.0 serverin). Then I went back to add/remove programs and removed it again. After a reboot, it removed all the files except for "data" folder, which leads to a "mysql" folder with a bunch of files, titled host, columns, tables, proc, time zones, e.t.c.

4. I've checked multiple tutorials on MySQL, including this site, and all I can get is how to *update* an already existing MySQL to a better version. Or how to remove MySQL as a service. All I want here is to completely remove MySQL 5.0 from my computer, so I can start fresh with MySQL 4.0.20.

-- So now for my question =P. I simply need to know how to completely remove MySQL 5.0 from my computer, thats it. The catch is, I kinda have two installed now. One with all the files, and one with only the "MySQL --> data folder --> MySQL folder" (Which I described earlier). If anyone can add some insight on this I would greatly appreciate it, I should have just installed the previous version from the start.

Uninstall MySQL On OS X
I have installed two different version of MySQL

- MySQL 4.0.24
- MySQL 4.1.11

After that I decided to uninstall them to perform a new clean install of 4.1.11

I have deleted both
- MySQL 4.0.24
- MySQL 4.1.11
in /usr/local/

But after a reboot ( and nothing in the Startupitems folder) MSQL.prefPane still says "The MySQL Server Instance is running" and I cannot use the "Stop MySQL server" buton as only the "Start MySQL server" is available... And if I use it, I have this message "Could not startup MySQL Server. Reason: Internal error".

Code:

Uninstall MySQL RPM
How to uninstall MySQL rpm package?

Uninstall Mysql
how to uninstall the binary version of mysql (4.1), I deleted the directory but when I went to reinstall mysql again I was getting new errors.

Uninstall MySql Server 4.1
I am trying to uninstall MySql Server 4.1. I have googled and used the serach engine but I can't seem to find a decent tutorial/article/explanation on how to do this. I have windows XP.

I tried to remove it from the services with mysql -k uninstall, like I did for Apache, but it didn't work. Any advice? Or could anyone point me to aggod link?

Uninstall MySQL To Start Over
I just want to uninstall it and start again from scratch. I tried following the cleanup instructions at entropy.ch but it was unable to run, outputting an error:

I was unable to find inforation on the old package, cannot continue.
Does anyone know some commands that will let me completey remove MySQL (current cersion) so that I can begin over from scratch with a new install?

Uninstall Old Mysql Completely Red Hat 9
I have been running phpbb for a couple years on this machine I have. It has run flawlessly until just recently. We were unablbe to access the webpage and all, though other services were still being hosted fine.

It seemed like a good time to upgrade apache/mysql/php. I am running red hat 9 on the box and I just downloaded the source files for each and compiled and installed. For whatever reason we can't seem to get the mysql to integrate back in correctly. What I would like to do is COMPLETELY remove every trace of the older mysql install and then reinstall.

Can't Install / Uninstall MySQL
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

How To Uninstall The Mysql Sevice?
First I installed mysql 4.0.20d on my winXP SP1 laptop. And then I wanted to install a new version and forgot to uninstall it in normal way. While the binaries of mysql was deleted, the mysql service still stayed there.

I installed the mysql 4.1.12a, but its sevice couldn't be launched by the Config Wizard. I supposed that the old version service caused it, but I don't know how to delete it.

Totally Uninstall MySQL
I have forgotten my password(s) for MySQL. I have uninstalled MySQL Server 5.0 and removed the directory. Upon reinstall, I gave it a root password. If I try to access via Query Browser or MySQL Admin it still defaults to my old user name. I have tried the command line prompt with the new root password but access is denied. I am just starting and I have no usefull data so I can wipe it clean and reinstall from scratch if anyone can tell me how to eliminate all traces of the prior installation.

Restart
I have SQL, PHP, and Apache running on a computer. Every time I restart that computer (after upgrades, etc.), I have to reinstall all the PHP programs that use SQL.

Am I doing something wrong or does that happen when you restart a server?

Cant Restart
I was getting the usual "too many connections" error and usually its resolved by simply restarting the mysqlserver...

/etc/init.d/mysql restart

BUT this time mysql gives me the "too many connections" error even when trying to restart the service...

"mysqladmin restart" gives the same error...

#mysqladmin restart

mysqladmin: connect to server at 'localhost' failed
error: 'Too many connections'

Restart Server?
how do you restart the mysql server? Itąs already running, I just want to stop and restart. I spent 30 minutes searching the manual and couldnąt figure it out. I
eventually just rebooted my server.

Restart Server?
how do you restart the mysql server? Itąs already running, I just want to stop and restart. I spent 30 minutes searching the manual and couldnąt figure it out. I
eventually just rebooted my server.

MySQL Can't Restart
MySQL is installed on a dedicated server machine and runs without any problems, including INNODB. If the server is rebooted or the MySQL service is manually stopped, it can't restart, telling error 1067.

Err log file tells something about 'operating system error 87 in a file operation'. Err 87 stands for 'ERROR_INVALID_PARAMETER' whatever that's supposed mean. The only 'special' about the machine is it's a 'Proliant' server (HP) and has a RAID. Any idea how to get it running reliably?

I Cannot Restart Mysql
I have mysql running on a Win2k server. Everything was fine and the database had been up for 5 months + with no problems.

Something happened over the weekend (I can't see any records in any of the logs), and mysql will not start up again.

I have tried quite a few things, but it refuses to start again.

I've tried removing the service, and reinstalling, I've tried installing the mysql over the top.

the error i get when trying to log in by command line is:

ERROR 2003: Can't connect to Mysql server on 'localhost' <10061>

Error On Restart..
about mysql, everytime i restart my computer that have the program installed and then try to start it again it doesnt work, i have to reinstall it everytime and rehatch the mangos scripts and realmd scripts over again, its quite annoying indeed :( anyone know the problem or had this problem and got it fixed?..

everytime i try to start up using the wizard system it turns out like this
it give the error when it load Start Service.

Restart Auto_increment
How do I restart a collumn with auto_increment. I want it to start counting up from 1 again.

Server Self Restart
I find mysql server will self restart in error log, but some time can't be complet start.
So my question is
(1)Why mysql server will auto restart by itself
(2)how to prevent can't start normal?

the error messages

050525 18:07:19 /usr/mysql/libexec/mysqld: Normal shutdown

050525 18:07:19 InnoDB: Starting shutdown...
050525 18:07:20 InnoDB: Shutdown completed
050525 18:07:20 /usr/mysql/libexec/mysqld: Shutdown Complete

050525 18:07:20 mysqld ended

050525 18:08:06 mysqld started
Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command
line
050525 18:08:10 InnoDB: Started
/usr/mysql/libexec/mysqld: ready for connections.
Version: '4.0.12' socket: '/usr/mysql/tmp/mysqld.sock' port: 3306
050613 08:47:10 mysqld started
Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command
line
050613 8:47:13 InnoDB: Started
/usr/mysql/libexec/mysqld: ready for connections.
Version: '4.0.12' socket: '/usr/mysql/tmp/mysqld.sock' port: 3306
050708 9:11:36 /usr/mysql/libexec/mysqld: Normal shutdown

050708 9:11:36 InnoDB: Starting shutdown...
050708 9:11:36 InnoDB: Shutdown completed
050708 9:11:36 /usr/mysql/libexec/mysqld: Shutdown Complete

050708 09:11:36 mysqld ended

050708 09:12:36 mysqld started
Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command
line
050708 9:12:39 InnoDB: Started
/usr/mysql/libexec/mysqld: ready for connections.
Version: '4.0.12' socket: '/usr/mysql/tmp/mysqld.sock' port: 3306

Restart Fixes
We're running MySQL v4.1 on RedHat Linux v3. From time to time, queries
to the MySQL database start to execute very slowly (up to 15 minutes in
some cases). When we restart the MySQL service, the queries fast again
(1 second or less).
Is there a way that I can optimize the MySQL installation such that this
restart is not required?

Restart Replication
I need to restart replication between my slave and a remote master. The slave can, and was, fetching updates from the master, but not applying them. When the error was fixed and mysql was restarted, the relay-bin, relay-bin.index, relay-log.info files went away. I've got them up to last night on tape & can restore them, which I'd rather do instead of getting another snapshot, etc.
Would the restore from tape be a safe method? After the files are back on disk will the IO thread go through them properly, or am I better off just getting another .tar from the master?

Restart Automatically
Is there a way to check if mysql is running, and if not to restart it automatically?
I'm guessing a cron job.

Mysql Restart
i upgrade mysql server from 3.23.58 to 4.1.12.
when i tried to restart mysql server it is not restarting

Restart MySQL
Please bear with me, I am inexperienced with MySQL so I'll try my best to explain the problem. I'm on an old Apache box.

Looking at the MySQL log, I see the following:

051110 08:25:54 mysqld started
051110 8:25:55 /usr/local/mysql/libexec/mysqld: Can't find file: 'host.MYD' (errno: 2)
051110 08:25:55 mysqld ended

Service Will Not Start After Restart???
After installing MySQL Server 4.1 everything seemed fine, I got my phpBB2 installed and running fine. Then I restarted my computer and the service did not start...so I tryed to manually start it but it would not. So I uninstalled and reinstalled MySQL and again everything seemed fine until I restarted my computer, and again the same problem..

AUTO_INCREMENT Reset On DB Restart
I am working on webapp and multiple users can modify data in the same table. When database is empty and MYSQL is restarted AUTO_INCREMENT indexes do reset (I am using 4.026-debug). Scenario:

User A enters some data in table and goes to lunch
User B views data, decides to delete record (by auto-inc index), marks record on UI and goes for lunch.

User A comes back and decides he was wrong with data entered. He cleans table and enters other data.

Someone for some reason restarts MYSQL
User B comes from lunch and clicks Delete (on already selected record)... Boom. Wrong record is deleted.

What to do? The only thing I can think of is never keep the table empty. But this is insane.

MySQL Server Won't Restart
I was prompted to use the "Stop/Start Service" feature in MySQL Administrator and could not re-start the MySQL Server. I have been given a bunch of advice on how to get it started again like using the command prompt in XP Pro. I did - and input "mysqld --standalone", it didn't get MySQL Server started. I was told to check the error log, this is what I found...

050515 11:08:37 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
050515 11:08:37 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 47130.
InnoDB: Doing recovery: scanned up to log sequence number 0 47130
InnoDB: Page directory corruption: supremum not pointed to
050515 11:08:37 InnoDB: Page dump in ascii and hex (16384 bytes):
len 16384; hex

It seems that the "sepremum" is not pointed to the file it should be pointed to. I don't know what the "sepremum" is or if it's preventing MySQL Server from starting.

Auto-restart MySQL
Trying to restart MySQL when it is down.

I have placed the following script in a file :

checksql --->

#!/bin/sh
/etc/rc.d/init.d/mysqld status >/dev/null 2>&1
if [ $? -ne 0 ]; then /etc/rc.d/init.d/mysqld restart >/dev/null 2>&1;
fi

And a crontab event */each several minutes that execute the script.

Problem : the script is not functioning.

+ :
- /etc/rc.d/init.d/mysqld status > return "stopped" or "started"
- Crontab event as configured launch correctly scripts (tested on a
send mail script)
- /etc/init.d/mysqld status or /etc/rc.d/mysqld status does not work.

Restart MySQL Server
how to safely restart the MySQL server? I have a dedicated server but I cannot install MySQL Administrator because the OS is Windows 2003 Web Edition which doesn't allow extra apps to be installed. I think therefore that I will have to do it using the MySQL Command Line Client which is installed.

All I want to do is amend the my.ini file and then restart it for these changes to take affect.

MYSQL Password Doesn't Work After Computer Restart
Title says it all...I really did everything what I could do...I don't know...
Anyone knows how to fix this?

Auto_increment Primary Key Getting Reused After Delete And DB Service Restart?
I've found that if I delete any number of rows from a table with an auto_increment primary key and then restart the MySQL server, new rows added after the DB server is back up will receive a row ID identical to the deleted rows.

I'm using 5.0.37-community-nt MySQL Community Edition (GPL) on a fully patches Windows XP system.

Anyone know if this is expected or if it is a bug? Here's an example Code:

Restart MySQL Service After Root Password Change
I installed mySQL on a Win2k machine and tried to change the root password,
which didn't seem to work.

I changed it this way:

c:>mysql
mysql> use mysql
mysql> update user set password=PASSWORD('test') where user='root';
mysql> exit

and then tried to login this way:

c:>mysql -u root -p
password: test

which didn't work. Then, after many unsuccessful attempts, I restarted the
service and suddenly the password I had set worked. Then I realized that (at
least for the root password) I needed to restart the mySQL service everytime
I changed the root password, otherwise it would not become effective.

Is this by design??? Am I doing something wrong?

Restart Slave After Master Has Died In Replicated Environment
Our master database ran out of connections and we had to restart the
server (couldn't SSH into the box). Rebooting the server worked and
of our clients resumed activity.

The problem is that the slave didn't start automatically so I tried to
do a START SLAVE; on it.

This is the latest shown in the error log on the slave.


040110 20:06:13 Error reading packet from server: binlog truncated in
the middle of event (server_errno=1236)
040110 20:06:13 Got fatal error 1236: 'binlog truncated in the middle
of event' from master when reading data from binary log
040110 20:06:13 Slave I/O thread exiting, read up to log
'user1_master.002', position 802078191

(THIS IS AFTER I DID A SLAVE_START TODAY 1/20)

040120 8:56:39 Slave I/O thread: connected to master
'slave@db1.ezboard.com:5000', replication started in log
'db1_master.002' at position 802078191
040120 8:56:39 Slave: there is an unfinished transaction in the
relay log (could find neither COMMIT nor ROLLBACK in the relay log);
it could be that the master died while writing the transaction to its
binary log. Now the slave is rolling back the transaction. Error_code:
0
040120 8:56:39 Error running query, slave SQL thread aborted. Fix
the problem, and restart the slave SQL thread with "SLAVE START". We
stopped at log 'db1_master.002' position 802078147.

Mysqld Shows High Cpu Usage Over Extended Time, Restart = Normal
Occasionally in checking one of the servers, I noticed that mysql shows 85% + of
cpu usage essentially leaving the server at 0% idle. After monitoring it for a
few hours, the status did not change. After a stop and start of mysql, things
progessed normally. Checking back a few days later I noticed it was once again
sitting up there at 95% (or thereabouts) and doing nothing of value from what i
could tell.

Have restarted MySQL during peak usage times for that server and its database,
and it has showed normal loads and CPU usage (approx 20% CPU with .1 to .3
load). Is there a known issue (running on FreeBSD 4.8, MySQL 3.23.55 MyISAM)?
Is there something I should check when next I notice the high CPU usage?

ORDER BY WHERE + Include Rest Of Table Or ORDER? Possible?
I need to create some SQL that when run returns all the rows which a column is equal to number that has been specified, but then the query needs to return the rest of the rows in the table. How could this be done? is it even possible? Is their order syntax that could do this better?

Multiple ORDER & SUB ORDER On The Same MySQL Table
I am trying to do multiple ORDERS or SUB ORDERS on the same MySQL table, and I'm loosing my mind trying to fathom the logic and SQL statement to use, I'm no MySQL genius! more a newbie.

*** SEE ATTACHED IMAGE PLEASE

I have tried all sorts of SQL statements, e.g:

SELECT * FROM categories GROUP BY parent ORDER BY order, parent DESC

Nothing seems to work.

I think my only solution is to do a bubble-sort after putting the whole table in a PHP ARRAY ?

I'd also like the menu to act like the + pop-open sub-menu boxes on the Forum left column menu.

How To ORDER BY DESC Properly. It Makes 150 Before 50 If ASC Order!?
I have this list:
50
150
200
250
300
350
400
450
500

If I order it by ASC order then mysql results this:
150
200
250
300
350
400
450
50
500

What the hell ?? How do I order it properly?

Why "service Mysqld Restart"
This is my 5th or 6th server (both Unix and Windows varieties). In the
past I've gotten the message "ERROR 2002: Can't connect to local MySQL
server through socket '/var/lib/mysql/mysql.sock' (222)". In the past,
I've either asked someone else to start the server or just tried
everything I could until the server started.

This time, I took a systematic approach, and noted every step. What
finally worked was typing the command "service mysqld restart" It
didn't stop the server, of course, because the server wasn't running,
but it DID start the server.

Why "service Mysqld Restart":
This is my 5th or 6th server (both Unix and Windows varieties). In the
past I've gotten the message "ERROR 2002: Can't connect to local MySQL
server through socket '/var/lib/mysql/mysql.sock' (222)". In the past,
I've either asked someone else to start the server or just tried
everything I could until the server started.

This time, I took a systematic approach, and noted every step. What
finally worked was typing the command "service mysqld restart" It
didn't stop the server, of course, because the server wasn't running,
but it DID start the server.

Does anyone have an explanation of why this worked? Quite frankly, I
have no idea myself, but I sure would like to find out.

How Does MySQL Order Records With No ORDER BY?
If you don't specify an ORDER BY clause, how does MySQL order the records? Is it just the order in which they found in the database?

Selection Order Without Order By!?
I have a table with this structure

trans
-------
t_no (int auto_increment)
t_timestamp (datetime)
t_price (double)
t_vol (int)

I've inserted two record into trans table with same t_timestamp value. When i do a select * from trans it doesn't always return ascending order based on t_no? But sometimes it does?

I would like to know how MySql order selection result wihtout the order by command based on this scenario.

Order By - Order Of Precedence?
I know how to use the order by, but wondered if there is an order of
precedence in using it.

Facts: hcounty is a county that someone puts in a home county in which they live. In the comments they are also allowed to put text, that might contain a county listing also. I want to have the results put the records that have hcounty matches first, then the records that have a county match in the comments field after the first set of records. I have tried all sorts of order by and group by and can't get the result I'm looking for....

Order By - Order Of Precedence?
I know how to use the order by, but wondered if there is an order of
precedence in using it.

Facts: hcounty is a county that someone puts in a home county in which they
live. In the comments they are also
allowed to put text, that might contain a county listing also. I want to
have the results put the records
that have hcounty matches first, then the records that have a county match
in the comments field after the first set of records. I have tried all sorts
of order by and group by and can't get the result I'm looking for. Any hint
or assistance would be greatly appreciated.

$query = "SELECT * FROM contacts WHERE hcounty ='$searchcounty' or comments
like '%$searchcounty%' order by state, hcounty, dtestart ";

Force Order By Order??
I have 6 rows of data... each has a name, eg: c1, c2, mrgs1, totalfte.
they are all under the one column "field". Is there a way I can force their order??

at the mo, I use "ORDER BY field DESC" and its coming out lile

mrgs1, totalfte, c1, c2

I need

totalfte, mrgs1, c1, c2

is it possible to sort like this??


Copyright © 2005-08 www.BigResource.com, All rights reserved