Sign in to follow this  
SON_BKK

Error code 1046

1 post in this topic

22:01:40    CREATE TABLE IF NOT EXISTS `account` (   `uid` varchar(32) NOT NULL,   `clan_id` int(11) unsigned DEFAULT NULL,   `name` varchar(64) NOT NULL,   `money` double NOT NULL DEFAULT '0',   `score` int(11) NOT NULL DEFAULT '0',   `kills` int(11) unsigned NOT NULL DEFAULT '0',   `deaths` int(11) unsigned NOT NULL DEFAULT '0',   `first_connect_at` datetime DEFAULT NULL,   `last_connect_at` datetime DEFAULT NULL,   `last_disconnect_at` datetime DEFAULT NULL,   `total_connections` int(11) unsigned NOT NULL DEFAULT '1',   PRIMARY KEY (`uid`),   KEY `clan_id` (`clan_id`),   CONSTRAINT `account_ibfk_1` FOREIGN KEY (`clan_id`) REFERENCES `clan` (`id`) ON DELETE SET NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8    Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the sidebar.    0.000 sec
 

I try to use mariaDb and mysql workbench it doesn't help me. 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.