Re: innodb disabled

2008-05-08 Thread Srini

Is your problem fixed?

what was the problem

-srini
Krishna Chandra Prajapati wrote:

Thanks a lot to all of you.

On Wed, May 7, 2008 at 8:51 PM, Srini [EMAIL PROTECTED] wrote:

  

It could be the problem with permissions or sizes of iblog or ibdata files

Can you try this back up the iblog and ibdata files and move it to some
other location from /data/mysql
and restart mysql to see if it shows innodb up on show engines, by doing
this atleast u can isolate the
problem is not with iblog or ibdata files

-srini


Krishna Chandra Prajapati wrote:



Hi,

What ever you have written i did the same thing, Yet innodb get
disabled,


On Tue, May 6, 2008 at 11:24 AM, Rolando Edwards 
[EMAIL PROTECTED]
wrote:



  

If you just created the /data/mysql folder and moved the ib* files to
that
folder from /var/lib/mysql, you may have to contend with the internal
data
dictionary with ibdata1.

You do the following:

1) Put the mysql data back into /var/lib/mysql
2) Configure my.cnf to set datadir=/var/lib/mysql
3) Restart mysqld

Once you put it back the way it was, then

4) mysqldump -h... -u... -p... --single-transaction --all-databases
--routines --triggers  AllData.sql
5) Make /data/mysql TOTALLY EMPTY.
6) Configure my.cnf to set datadir=/data/mysql
7) Restart mysqld

At this point, mysqld will regenerate a new ibdata1 file with a clean
internal data dictionary.

8) mysql -h... -u... -p...  AllData.sql

All data get put into this new data folder and will reload the
internal
data dictionary elements pertaining to its new location.

Moving MyISAM is simple. Moving InnoDB is a little more work but doing
it
this way ensures ibdata1 is in a proper state.

-Original Message-
From: Juan Eduardo Moreno [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 06, 2008 9:12 AM
To: Krishna Chandra Prajapati
Cc: mysql
Subject: Re: innodb disabled

Hi,

Can you send the error log file of mysql server in your machine?.

Regards,
Juan


On 5/6/08, Krishna Chandra Prajapati [EMAIL PROTECTED] wrote:




Hi Juan,

I have verified directory permissions, its shown below.

linux76:~# ls -l /data/mysql/
total 535088
drwx-- 2 mysql mysql 20480 2008-05-04 23:44 dip
-rw-rw 1 mysql mysql  10485760 2007-12-23 01:21 ibdata1
-rw-rw 1 mysql mysql 268435456 2008-01-13 01:17 ib_logfile0
-rw-rw 1 mysql mysql 268435456 2008-01-13 01:17 ib_logfile1
drwx-- 2 mysql root   4096 2008-03-28 02:58 mysql

In error log file there is error.
debian-sys-maint error

The above error come while starting mysql for the first time. Then i


  

have




given the permissions for debian sys-maint from
 /etc/mysql/debian.cnf.
After that restart mysql don't gives any error. still innodb is


  

disabled.




Thanks,
Prajapati

On Tue, May 6, 2008 at 7:03 AM, Juan Eduardo Moreno 
[EMAIL PROTECTED] wrote:



  

Hi,

The InnoDB engine was disable because some ib_log files or Ibdata
files,  InnoDB can´t read. In some cases, could be a directory




permissions
  


or some error in creation of ib_logfiles when database is started.
  

If




you
  


want , try to see in the error log file generated in order to see
  

more
details. If you don´t understand nothing in the error log file,
please




send
  


this errors to the list.
  

Regards,
Juan



On Tue, May 6, 2008 at 5:27 AM, Krishna Chandra Prajapati 
[EMAIL PROTECTED] wrote:





Hi all,

I have change the data directory from /var/lib/mysql to
/data/mysql
directory and adding innodb_file_per_table. By doing this innodb
storage
engine get dissabled. my.cnf doesn't contains #skip-innodb. Is


  

it's



adding
  

will enable or not

HOW CAN I ENABLE INNODB

mysql show engines;




  

++--++




| Engine | Support  |
  

Comment|




  

++--++




| MyISAM | DEFAULT  | Default engine as of MySQL 3.23 with great
  

performance |
| MEMORY | YES  | Hash based, stored in memory, useful
for
temporary
tables  |
| InnoDB | DISABLED | Supports transactions, row-level
locking,
and
foreign keys |
| BerkeleyDB | NO   | Supports transactions and page-level
locking   |
| BLACKHOLE  | NO   | /dev/null storage engine (anything you


  

write



to it
  

disappears) |
| EXAMPLE| NO   | Example storage
engine |
| ARCHIVE| YES  | Archive storage
engine |
| CSV| YES  | CSV storage
engine

Re: innodb disabled

2008-05-07 Thread Srini

It could be the problem with permissions or sizes of iblog or ibdata files

Can you try this back up the iblog and ibdata files and move it to some 
other location from /data/mysql
and restart mysql to see if it shows innodb up on show engines, by doing 
this atleast u can isolate the

problem is not with iblog or ibdata files

-srini

Krishna Chandra Prajapati wrote:

Hi,

What ever you have written i did the same thing, Yet innodb get disabled,


On Tue, May 6, 2008 at 11:24 AM, Rolando Edwards [EMAIL PROTECTED]
wrote:

  

If you just created the /data/mysql folder and moved the ib* files to that
folder from /var/lib/mysql, you may have to contend with the internal data
dictionary with ibdata1.

You do the following:

1) Put the mysql data back into /var/lib/mysql
2) Configure my.cnf to set datadir=/var/lib/mysql
3) Restart mysqld

Once you put it back the way it was, then

4) mysqldump -h... -u... -p... --single-transaction --all-databases
--routines --triggers  AllData.sql
5) Make /data/mysql TOTALLY EMPTY.
6) Configure my.cnf to set datadir=/data/mysql
7) Restart mysqld

At this point, mysqld will regenerate a new ibdata1 file with a clean
internal data dictionary.

8) mysql -h... -u... -p...  AllData.sql

All data get put into this new data folder and will reload the internal
data dictionary elements pertaining to its new location.

Moving MyISAM is simple. Moving InnoDB is a little more work but doing it
this way ensures ibdata1 is in a proper state.

-Original Message-
From: Juan Eduardo Moreno [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 06, 2008 9:12 AM
To: Krishna Chandra Prajapati
Cc: mysql
Subject: Re: innodb disabled

Hi,

Can you send the error log file of mysql server in your machine?.

Regards,
Juan


On 5/6/08, Krishna Chandra Prajapati [EMAIL PROTECTED] wrote:


Hi Juan,

I have verified directory permissions, its shown below.

linux76:~# ls -l /data/mysql/
total 535088
drwx-- 2 mysql mysql 20480 2008-05-04 23:44 dip
-rw-rw 1 mysql mysql  10485760 2007-12-23 01:21 ibdata1
-rw-rw 1 mysql mysql 268435456 2008-01-13 01:17 ib_logfile0
-rw-rw 1 mysql mysql 268435456 2008-01-13 01:17 ib_logfile1
drwx-- 2 mysql root   4096 2008-03-28 02:58 mysql

In error log file there is error.
debian-sys-maint error

The above error come while starting mysql for the first time. Then i
  

have


given the permissions for debian sys-maint from  /etc/mysql/debian.cnf.
After that restart mysql don't gives any error. still innodb is
  

disabled.


Thanks,
Prajapati

On Tue, May 6, 2008 at 7:03 AM, Juan Eduardo Moreno 
[EMAIL PROTECTED] wrote:

  

Hi,

The InnoDB engine was disable because some ib_log files or Ibdata
files,  InnoDB can´t read. In some cases, could be a directory


permissions


or some error in creation of ib_logfiles when database is started. If


you


want , try to see in the error log file generated in order to see more
details. If you don´t understand nothing in the error log file, please


send


this errors to the list.

Regards,
Juan



On Tue, May 6, 2008 at 5:27 AM, Krishna Chandra Prajapati 
[EMAIL PROTECTED] wrote:



Hi all,

I have change the data directory from /var/lib/mysql to /data/mysql
directory and adding innodb_file_per_table. By doing this innodb
storage
engine get dissabled. my.cnf doesn't contains #skip-innodb. Is
  

it's


adding
will enable or not

HOW CAN I ENABLE INNODB

mysql show engines;


  

++--++


| Engine | Support  |
Comment|


  

++--++


| MyISAM | DEFAULT  | Default engine as of MySQL 3.23 with great
performance |
| MEMORY | YES  | Hash based, stored in memory, useful for
temporary
tables  |
| InnoDB | DISABLED | Supports transactions, row-level locking,
and
foreign keys |
| BerkeleyDB | NO   | Supports transactions and page-level
locking   |
| BLACKHOLE  | NO   | /dev/null storage engine (anything you
  

write


to it
disappears) |
| EXAMPLE| NO   | Example storage
engine |
| ARCHIVE| YES  | Archive storage
engine |
| CSV| YES  | CSV storage
engine |
| ndbcluster | DISABLED | Clustered, fault-tolerant, memory-based
tables |
| FEDERATED  | YES  | Federated MySQL storage
engine |
| MRG_MYISAM | YES  | Collection of identical MyISAM
tables  |
| ISAM   | NO   | Obsolete storage
engine

Re: grant user privileges

2008-04-15 Thread Srini

Can you give the output of the command

show grants for admin;

Thank You,

-srini

Hiep Nguyen wrote:
hi all, i have an existing database (internal) with a user named 
'admin', everything works fine as far as privileges concern.


i just created a new database (test) and want to grant admin's 
privileges on test as same as internal.


how do i do this???

i tried (as root):

grant all on test.* to 'admin'@'localhost';
grant all on test.* to 'admin'@'10.0.0.%';

but it seems not right.

thanks,




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: MySQL MASTER/MASTER REPLICATION

2008-04-01 Thread Srini

is your mysql running on the master host i,e 10.100.1.170

Also can you please execute show status on that host to see how long 
the server is up,
may be the server is restarted and your slave is retrying on the same 
old connection


HTH,

-srini

Néstor wrote:

In my RHEL5, I am using this link to create MySQL replication an did work
the first time I did it:
http://crazytoon.com/2008/02/29/mysql-how-do-you-set-up-mastermaster-replication-in-mysql-centos-rhel-fedora/

I change the ip address and the hostname and it is not working now.
My new ip is 10.100.1.170 and my hostname is wahoo1.  The other ip
address in my master/master replication is 10.100.1.171 and wahoo2

*This is what wahoo1 my.cnf looks like*:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords=1
auto_increment_increment=2
auto_increment_offset=1
relay-log=wahoo1-relay-bin
log-bin=wahoo1-bin
binlog-ignore-db=mysql
binlog-ignore-db=test
server-id = 1
master-host = 10.100.1.171
master-user = slaveuser
master-password = slavepw
master-port = 3306

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

*This is what wahoo2 my.cnf looks like:*
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords=1
auto_increment_increment=2
auto_increment_offset=2
relay-log=wahoo2-relay-bin
log-bin=wahoo2-bin
binlog-ignore-db=mysql
binlog-ignore-db=test
server-id = 2
master-host = 10.100.1.170
master-user = slaveuser
master-password = slavepw
master-port = 3306

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


*This is the error I get on my mysqld.log file*:
080401 15:15:07 [Note] Slave SQL thread initialized, starting replication in
log 'FIRST' at position 0, relay log './wahoo2-relay-bin.02' position:
98
080401 15:15:07 [ERROR] Slave I/O thread: error connecting to master '
[EMAIL PROTECTED]:3306': Error: 'Lost connection to MySQL server during
query'  errno: 2013  retry-time: 60  retries: 86400


HELP!

Thanks,

Néstor :-)

  



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]