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)