Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1562

Two different list of databases on MySQL-cluster-7.1.22 while putting the 2 different commands (no replies)

$
0
0
Hi All,

I installed the MySQL-Cluster-7.1.22 versin on Windows 7.
As per the installation guide that is on MySQL website ie."installation of MySQL-Cluster" I installed the mysql.

Here my problem is :

CASE:1 :

When I tried to login using command : mysql -uroot -proot
It was logedin successfully.

I got the following trace:

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| capv2routedb |
| eceaccore |
| ecedatabase |
| ecegeodatabase |
| mysql |
| sigdb |
| sigdb1 |
| test |
+--------------------+
9 rows in set (0.00 sec)

These number of databases we have.

CASE:2 :

When I am login with command: mysql -uroot -P500
-----------
[This command for up the ndbcluster storage engine]

We got the different set of databases:

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| ndbinfo |
| performance_schema |
| sigdb |
+--------------------+
5 rows in set (0.00 sec)
==========================================================
I have following questions:

Question1:
why we are getting the different set of databases. I have only installed the MySQL-cluster-7.1.22.

Question2:

In CASE:1, If I tried to create a table which having a PRIMARY KEY value varchar(500), then It throws error like:

"Specified key was too long; max key length is 1000 bytes"

because we were using the UTF8 character-set encoding.

BUT in CASE:2, if I created the table which having the PRIMARY KEY value varchar(500), then It crated successfully with any error.

Here my finding is, It is also using the UTF8 chatacter-set encoding.

Why these above tow CASES behaves different ?

I am not sure the above explanation is clear, but if any one have query, please let me know...

Please share your inputs on this.


Thanks,
Upendra

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>