Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 10.0.1, 5.5.30
-
Component/s: None
-
Labels:
-
Environment:OpenSuse 12.3 64bit using the standard repository's MariaDB package version 5.5.29
Description
I have imported a Mysql-database from a remote Mysql-server. For that purpose I've created an empty database of the respective name locally and then copied the database files to /var/lib/mysql/DATABASENAME using rsync (This works perfectly in MySQL).
Connecting to the database in the Mariadb-client ("use DATABASENAME;") the client hangs forever with the message:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Doing so, that is starting the client with the -A option I have no problem and can query the database.
So I suppose it is some error related to indexing of the imported database table-names.
Connecting to the database via jdbc (using the mysql-java-connector) my program hangs as well and here I don't have the -A option ![]()
I'm not sure whether this way of importing a Mysql database is supported by MariaDB-MySQL compatibility, but since the remote MySQL server doesn't support mysql-dump I don't have another option.
#####
For reproducability the commands to import the database:
In the mariadb-client:
create database hg19;
On the command-line:
sudo rsync -v -r rsync://hgdownload.cse.ucsc.edu/mysql/hg19/refGene* /var/lib/mysql/hg19/
(The source is a public mysql server at ucsc for bioinformatics)
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Hi Mark,
Not sure which version of MySQL database you imported the schema from, but it requires mysql_upgrade (which is normally the case when you do upgrade or crossgrade between different versions).
The problem you described is reproducible here, and there are lots of complaints
130404 13:35:54 [Warning] Checking table: './hg19/refGene'
130404 13:35:55 [ERROR] mysqld: Table './hg19/refGene' is marked as crashed and should be repaired
in the error log, but it all goes away after I run mysql_upgrade. Please try it out.