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


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Changed Datadir Now Mysql Won't Run


I changed the datadir using mysql administrator (so I could "see it") (I'm using version 5.0.x under OS X 10.4.5 and now mysql won't run and I don't know how to reset the datadir. I've reinstalled mysql and when I try to run it this is what I get:

iBook-G4:/usr/local/mysql michael$ sudo ./bin/mysqld_safe &
[16] 12878
iBook-G4:/usr/local/mysql michael$ Starting mysqld daemon with databases from /Users/michael/Sites
STOPPING server from pid file /Users/michael/Sites/iBook-G4.pid
060329 12:38:24 mysqld ended




View Complete Forum Thread with Replies

Related Forum Messages:
HostName Changed - Now MySql Server Wont Run
I've changed the hostname of my sever at long last, now what had been a very stable Mysql server won't run, can anyone point me in the right direction?

View Replies !
Re MySql Datadir
I lost my password and figured out how to access the mysql server bu shutting it down and reloading it etc. but then the servier points to the wrong directory - that is /var instead of /var/lib/mysql (where all ther mys data files are. How do I change the datadir when loading in safe more (that is I type /usr/libexec/mysqld -Sg --user=root

View Replies !
Can't Move MySQL Datadir
I want to do something ridiculously simple and naturally MySQL is presenting me with problems that the manual doesn't even hint at.

Platform is Debian Linux 2.4.21

All I want to do is change the datadir in /etc/mysql/my.cnf from
/var/lib/mysql to /DB.

I attempted this as follows: Code:

View Replies !
MySQL Wont Start
I've just installed MySQL on my computer yesterday and it was running good at the time. Today I boot my computer and It won't load the MySQL service. I've added the MySQL path to the environment variables but that didn't solve the problem. I've attached the .err file below.

My system is:
PHP 5,
MySQL 4.1
Apache 2
I'm conencting to my network with a wireless card if that has anything to do with it. Probaly not since its a local service?

View Replies !
MySQL Wont Start Up
Last night I was attempting to activate MySQL for one of my domains using the Ensim control panel. It gave me an error while activating, and shortly after i noticed all MySQL activity on my server was no longer working.
Using ensim to activate the MySQL service I get the following error:

Quote: Result : start for service mysql failed.
Action start for MySQL failed with error.
Failed to start service: mysql. The following error occured:

Logged in using ssh i get similar messages. When I try to login to my MySQL powered blog system I get the following error:

Quote: Got an error: Bad ObjectDriver config: Connection error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

View Replies !
Mysql Server Wont Work
i am having mysql install with Plesk 7.5 for windows
and yasterday the mysql server wont work everytime i click to start it stop in same sec
how can i solve the problem and did that will make m elost my db ?

View Replies !
I Changed Root Password But I Can Not Login With Changed Password
I changed the password of root with
update user set password=password('newpassword')

Then I exited. But when I want to login again , it cannot authenticate the root
I should tell you that a hacker had changed my root password before. Because it was not encrypted before.

View Replies !
MySQL (PHPTriad Download) Window Wont Display.
Have downloaded the PHP Triad software from SourceForge.net as have had problems getting Apache working after installing from the Apache.org site. Apache works using this version but when selecting the MySQL - D from the start menu, the pop-up window doesn't display, but it flashes on then off. There is no uninstall option, and this isn't displayed in the windows remove programs setting either. How can I remove and reinstall, or get this working?

View Replies !
Mysql Installed And Running But Wont Start (XAMPP)
hey iv installed xampp as i want to begin learning php and need the php and mysql servers, it all seems to be running fine in the control panel of XAMPP it shows apache and mysql as running.

The problem is when i go to start mysql to create an actual database,by going:
C:xamppmysqlinmysql the DOS window pops up and disapears and the motherboard beeps.

Is this not the correct way of starting mysql for editing?
im using wondows xp serivce pack2 and XAMMP 1.5.5.

View Replies !
Float(m,n) Changed Between Mysql 4.0 And 5.0?
I have a float(11,10) field (default NULL) in one of my MyISAM tables. With MySQL 4.0.16, I can call an Update/Insert query with a value of , say 33.166668 to this field, and it updates correctly. When I retrieve that value again with a select statement, I get something like 33.1666668392 (10 digits after decimal). Which is correct. (The sql_mode server variable is set to 0)

With the same field in MySQL 5.0, my experience is different. With the server sql_mode set to one of the strict values( SQL_TRANS_STRICT), i get an error about out of range value for the float field. when I change the sql_mode to not have the SQL_TRANS_STRICT, I get the same error as a warning, 1264 "Out of range...". When I retrieve this value, it is set to 10.0000000000, which is wrong. But , when I change the field description to float(11,5) and do an update, the value is updated right, but I get an intermittent "No rows updated" error.

Could anybody please explain if the float definitions changed between versions? Does float(m,n) now mean that I can have only (m-n) digits before decimal point?

View Replies !
Mysql Appears To Have Changed The 'password' Function Hashing
I've been using Mysql for about 6 months but in fairly basic fashion. For a cms I have built, I have a users table, with userName and password fields. An admin can create new users, and the password is hashed using the PASSWORD() function.
SQL: "INSERT INTO users VALUES ('', '$userName', PASSWORD('$userPwd'))

Straight out of the book basically. Now the problem is that all this has been functioning fine on a couple of sites on external servers, plus a couple of local machines.

Until today, on my main dev machine - yesterday a user could log in, today they couldn't. As far as I can tell, nothing has changed. But when I look at the hashes in the database table, they are 41 chrs, and when I add a new user, the hash is 16 characters.

I know that at some stage the hash length was increased between mysql versions, but I have not updated the install (I run XAMPP for Windows 1.4.14, which appears to install php 5.0.4 and mysql 4.1.12)

Is there any other reason that the hash length could change to 16? I'd like to know why this happened so that I'm prepared if it happens on the server (where it is not so easy to hack in and add new users that can log in again)

View Replies !
Change Datadir In My.cnf
I would like to move my DBs in another directory.
I know that I have to change in my.cnf the datadir path ....

[mysqld]
datadir=/var/lib/mysql

-datadir=/user/mysql/databases

now my question is, can I simple copy all my DBs to the new datadir,
and then restart mysql server ? Or is there something to take care ?

View Replies !
Changing DATADIR
I installed MySql with the default settings. But I'd like now to change
the place where I keep my data files. I tried changing the DATADIR
parameter in /etc/my.cfg but the server won't start. Is there any way
to change only the data directory from /var/lib/mysql to
/otherplace/mysql and leave everything else in it's place?

View Replies !
Can't Change Datadir Path
I'm running MySQL 5.0.45-community-nt under Windows Vista Home Premium without any problems. In my LAN I have an ReadyNAS NV+ which I will like to use for for datadir. When I stop my MySQL instance, change the datadir path to the NAS and try to restart the service I get the following error in the log messages window:

Trying to start the server ...
Could not re-connect to the MySQL Server.
Server could not be started.
Can't create test file P:MySQL_dataASTERIX.lower-test
Can't create test file P:MySQL_dataASTERIX.lower-test
Aborting
C:Program FilesMySQLMySQL Server 5.0inmysqld-nt: Shutdown complete

Does anybody have an idea..

View Replies !
DATADIR :: Change Location Of Data File
I installed MySql with the default settings. But I'd like now to change the place where I keep my data files. I tried changing the DATADIR parameter in /etc/my.cfg but the server won't start. Is there any way to change only the data directory from /var/lib/mysql to /otherplace/mysql and leave everything else in it's place?


View Replies !
Win2003 Wont Allow
i have just downloaded the lastest mysql and the server wont allow the new version of mysql to install the service/
EDIT: i had an older version of mysql 4.0.3 or there abouts and uninstalled it so it was running nicely

View Replies !
Query Wont Work
PHP Code:

if(mysql_query("UPDATE users SET referer_score=referer_score+1 WHERE userID='$frommysql_referer'"))
{
               die(mysql_affected_rows());

im trying to figure out why refer_score isnt being iincremented as im expecting it to. i know that the value of $frommysql_referer is the right value that im expecting it to be. just it wont increment referer_score. and mysql_affected_rows() wont print anythnig to the screen

View Replies !
Service Wont Start
I've JUST installed MySql onto my machine and I press the "Execute" button and it 1) prepares configuration, 2) writes the configuration file but then the whole thing flops and it can't start the service. it displays the following message: 'The service could not be started. Error: 0'

View Replies !
It Wont Let Me Reset My Password For Mac Osx
if mysql is not letting me reset my password what can i do?. I'm using Mac Osx and my password only works sometimes. I dont understand it. Actually it only worked once. I want to reset it but it wont let me kill the mysql. I was running mysql or attempting to try to start mysql 4.0 and i just downloaded the 4.3.4 or something of mysql and now its giving me this when i attempt the
sudo /usr/local/mysql/bin/mysqladmin -u root -p shutdown:

[Denise-Womacs-Computer:~] denisewo% sudo /usr/local/mysql/bin/mysqladmin -u root -p shutdown
Enter password:
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

View Replies !
When Using 'mysqldump' The -p Switch Wont Work!
When I run:

mysqldump -u user -p pass mydb > mydb-backup.sql

I get this prompt:

Enter password:

I already gave mysqldump the password, why does it prompt me still? How to I get it to take my password as an argument?

View Replies !
View That Wont Return Existing Rows
i have a problem performing simple query over view. To make it short, so anyone
can recognize whether it is something im missing, this is the problem:

* i have created few levels of views (some of them are based on actual tables
and others are based on other created views or some mixed)
* lets say the name of the view i have problems with is "aView"
* when i perform "select * from aView" i get to see the view is correctly
populated
* when i add condition to the query above in some cases it returns ok results
but in others it returns 0 rows (which is wrong)

select * from aView where a=1, works fine
select * from aView where a=1 or b=2, works fine
select * from aVew where a=1 and b=3, returns 0 rows --- which is wrong(of
course not by itself but in my case there are rows with ok values) same goes with using only the condition on b column

a.) why wouldnt it fetch rows that are cleary in the view??
b.) is there any limitation on how high structure can we build using views

View Replies !
Enctype=multipart/form-data Wont Pass File Name
when i add enctype="multipart/form-data" to the form i cant get the file name into the databass... but if i leave that part out of the form then the files dont upload into my upload folder. so its either one or the other. is there a way to upload the file to my uploads folder and pass the data (filename) to the databass at the same time?
. . .
<form action="insert.php" method="post" enctype="multipart/form-data"> .....

View Replies !
Changed Characters
While using mysqldump to backup the databases on my server i noticed that all the the portuguese accented characters from my databases get screwed up and changed to wierd characters.
What's up?

View Replies !
Changed User Privileges And Now I Can't Log In
I read several web sites and O'Reilly's book on MySQL about securing the system tables.

I removed several users and, as advised inthe book and web sites, changed the user "root" to another name with another password.

I removed the site name as a host but kept the IP address.

Now when I use phpMySdmin to get back in, it let's me past the login popup BUT it gives me the message:

Error
MySQL said: Access denied for user: 'root@localhost' (Using password: YES)

The data in the database is not important but the database structure/definition is. I'd like to find a way to back up or dump that. Then I can reload MySQL and start over.

View Replies !
Get The Latest Changed Records
I hava a table with the following information

CREATE TABLE TEMP1 (REFID INT, REVISION INT, FIELDNAM VARCHAR(10), VALUE VARCHAR(10));
INSERT INTO TEMP1 VALUES(1001, 0, A, A2);
INSERT INTO TEMP1 VALUES(1001, 0, C, C2);
INSERT INTO TEMP1 VALUES(1001, 0, E, E2);
INSERT INTO TEMP1 VALUES(1002, 0, A, A3);
INSERT INTO TEMP1 VALUES(1002, 0, B, B2);
INSERT INTO TEMP1 VALUES(1002, 0, E, E3);
INSERT INTO TEMP1 VALUES(1001, 1, A, A4);
INSERT INTO TEMP1 VALUES(1001, 1, E, E4);

Here based on latest revision and refid I should get the fieldnam and value.
Expected output:
REFID FIELDNAM VALUE REVISION
1001 A A4 1
1001 E E4 1
1002 B B2 0
1001 C C2 0

View Replies !
User Information Changed
The other day someone changed every user's password on my site. Then they changed every user's email address to theirs - I assume the reason was that when the user used the password reset function, they would never see the information.

I'm trying to research what/where the vulnerability is in the script that I'm suing, but I don't really know where to start - not being a hacker, I don't even know the terms to search for here or on google.

Is this what is meant by mysql injection?

View Replies !
Rows Changed In Update SQL
Is there a way to find out how many rows got updated when i execute a update stmt.

I would like to get the updated rows count in SQL.

Let me know and Thanks in advance.

update stmt where clause;

now how can i get the count of rows that got updated.

View Replies !
How To Find Out Which Table Is Changed?
I dont have source code of my web application I installed. Its using mysql 5. when I create a new user account, I know "users" tables is changed, but there's also a couple other tables are modified.

Is there a way I can find out which table is changed?

View Replies !
History Of Changed Percents
I have a table with data like that:

percent date
50% 2007-05-01
30% 2007-05-02
30% 2007-05-03
50% 2007-05-04
50% 2007-05-05
20% 2007-05-06
20% 2007-05-07
50% 2007-05-08
70% 2007-05-09
70% 2007-05-10

The query has to return this rows:

50% 2007-05-01
30% 2007-05-02
50% 2007-05-04
20% 2007-05-06
50% 2007-05-08
70% 2007-05-09

View Replies !
All Swedish Characters Is Changed
I'm doing Kevin Yanks tutorial about how to manage users with session (with some small modifications).

But when the data is inserted into the table all Swedish characters is changed to some strange "¥" and "¶". Why is it so and how to fix it?

According to PHPAdmin the collation is either UTF-8 (db) or Latin1_swedish (table)?

View Replies !
Changed Root Password, Now I Can't Do Anything
I am following the MySQL by Michael Kofler and looking at securing root access as currently it has no password.

I've logged into the MySQL consol and changed password using :

mysqladmin -u root -h localhost password XXX

However, i now can't do anything in in mysql terminal it comes back "access denied for user 'root'@'localhost' (using password :NO)

View Replies !
Date And Time Stamp A Changed Row
I am about to declare a table with 20 columns.

How do I create 4 more columns:
1. current Time
2. current Day of the month
3. current Month
4. current Year

Such that:

a. These 4 columns are not editable by the user.

b. Whenever a row is updated/inserted/replace/etc. then
these 4 columns in that row are automatically updated
by the system accordingly.

View Replies !
Datetime Field Changed After ALTER
To archive when a row is added, I have a column called date_added which uses the data type DATETIME.

I recently added a new column to my table "ALTER TABLE mytable ADD COLUMN mycolumn INT", and my stored dates have all been changed. In hindsight, was this to be expected?

I am using PHP to both push data into MySQL and pull data from MySQL. To prevent such future blunders, is it good practice to store dates as CHAR data type, and actively store the date using PHP?

View Replies !
Phone Numbers Changed On Import
I have imported a cvs data file every way I can think of and I always get this weird problem. About 75% of my 4,000 files end up with the phone number 2147483647. I searched the cvs file and this number does not exist there.
Is there an explaination for this?

View Replies !
Bug :: Floating Point Value 1.0 Changed To 1 When Inserting
when insert the floating point "1.0" in the tables, it is converted as "1" , is there anyway to store the exact floating point values?

my intention is to insert the values like "1.0" or "1.10" or "1.110" without any restriction.

description of the table is ...

View Replies !
Replication :: Master Log File Position Changed
I have a simple master/slave replication environment that is working smoothly with one exception. If I restart the master server the Master Log File is incremented by one (e.g. the original master log is named data-bin.000001 and the new master log is named data-bin.000002) the slave server never notices that the Master Log File and the Master Log Position have changed. Instead, the slave sits there waiting for new entries in the old Master Log File. I can tell this by executing a SHOW SLAVE STATUS on the slave server.

I am not sure about this because I can't find any documentation on the proper behavior of mysql during this scenario, however, I am under the impression that slave server should be able to figure this out and continue replicating, without requiring me to execute an "CHANGE MASTER..." command on the slave server every time the master is restarted. Of course, I assume this same problem will occur when the Master Log File grows to its maximum size and a new Master Log File is
created.

If anybody who has experience with mysql replication could just confirm that the behavior I am seeing is not correct, that would be great. Or if anybody has any suggestions as to what, if anything, is wrong with my setup. Code:

View Replies !
Row Cannot Be Located For Updating. Some Values Might Have Changed Since It Was Last Updated
I've recently migrated from access to mysql with vb6). Unfortunately, i get the following error whenever the .update is executed on the recordset.

"Row Cannot be located for updating. Some values might have changed since it was last updated"

The select statement is:
Select * from tablename, connection,3,3 (have also modified the 3,3, to be adOpenDynamic, adLockOptimistic)

I have tried checking the flag To Return Matching Rows, I've added the option = 2 in the connection string, i have a primary key field in the table, and I've also tried re-assigning it to itself.

View Replies !
Identify Columns Changed By Update Statement
It says in the documentation that "If you set a column to the value it currently has, MySQL notices this and does not update it." is there anyway to identify what column values have changed? i.e. what columns have been updated?

View Replies !
String Error - Quotes Changed To Question Marks
I recently converted an asp/access site to an asp/mysql site. Now all my strings are displaying funky. For example if I have the text - Why don't we say "Yipee" - it displays on my site as - Why don?t we say ?Yipee?. The same change is being made when I use a sentence with "..." in it. I like ... baseball is changed to - I like?baseball.

Any thoughts as to why this is happening? Sometimes it is actually being changed somehow in the database, and sometimes it is correct in the database, but then changed when it displays on the web.

View Replies !
Truncating A Memory Table Wont Release Memory
I have a memory table that when i truncate it system memory that has been allocated by mysql isnt released. Im running mysql 5.1.

View Replies !
"/" Signs Wont Show After INSERT
I am doing an insert of a file path example
c:inetpubwwwroot est.gif
but after the insert to the database it seems like
mysql has deleted the so now it only looks like this
c:inetpubwwwroottest.gif
Why is it like this.. i have tested to change to varchar,
text, mediumtext and tested the 4 and 5 versions om mysql
server, i also have tested the 1.0.4 connector and 1.0.5 connector.

View Replies !
Restoring Database In A Changed Database
I have a database name 'rtdb1' with a table 'review_table'.

The 'review_table' has one column 'version' of varchar 20 type.

I took the mysqldump of the rtdb1 database.

Then I changed by table 'review_table' by adding one more column 'category' int type and called the database 'rtdb2'.

But when I restore my dump of 'rtdb1' database to 'rtdb2' database, I don't see the 'category' column.

View Replies !
ERROR 2002 (HY000): Can't Connect To Local MySQL Server Through Socket '/var/lib/mysql/mysql.sock' (13)
I have a problem connecting to sql and can't find anything on the net to solve the problem.

I have some sql databases running on a server. when I'm root on the server and I want to login to sql I do "mysql -ustudent -p -Dwordnet30 and it works fine. when I'm logged in with the user account on the server, i get this error message:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)

so with the same user name in mysql, i can log on when i'm root, but not when i'm the user. the grant table for the user looks like this: Code:

View Replies !
Can't Connect To Local MySQL Server Through Socket '/home/data/mysql/mysql.sock' (13)
I just installed mysql on linux. If I open a terminal, su to root,
then type "mysql", I am able to connect to the server and run my
queries.

If I exit out of su so that I am my own id (baisley) and type "mysql",
I get this error: Can't connect to local MySQL server through socket
'/home/data/mysql/mysql.sock' (13)

Any idea why? mysql.sock has full permissions (read/write/execute), so
it should be accessable by user baisley. If I am baisley and I run
"mysql -u mysql" (as mysql is the user that the RPM set up), it will
connect.

What I would like to be able to do is run this without having to be
user mysql all the time. How do I go about setting that up, or is it
better to run all my queries/make tables as 1 user?

View Replies !

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