mysql-workbench

Can not create table in MySQL workbench 5.2.40

末鹿安然 提交于 2019-12-22 06:57:38
问题 I've just created anew schema & want to create a new table. When ever I right click on 2myschema' that I created, and select 'new table', I give a name for the table to be created, but I get the following error: I searched about the error, and I found that the cause if I typed a reserved word such as 'order' but there is no way that table2 is reserved word, and I tried many different names and always get the same message. The column Name is not activated, so I can't enter column names. 回答1: I

How to flush data from mysql.slow_log table in mysql?

自闭症网瘾萝莉.ら 提交于 2019-12-22 06:56:55
问题 Hi i am working on MySQL version 5.5, can somebody please help me to clear/flush data from mysql.slow_log tables in mysql ? 回答1: If you are on linux > mysql -uroot -p > enter your password > use mysql; > delete from slow_log; It will give you an error that you can't lock log tables. Work around is, run the following queries: SET GLOBAL slow_log= 'OFF'; RENAME TABLE slow_log TO general_log_temp; DELETE FROM `general_log_temp`; RENAME TABLE general_log_temp TO slow_log ; SET GLOBAL slow_log =

MySQL workbench SSH connection error [Bad authentication type(allowed_types=['publickey'])]

牧云@^-^@ 提交于 2019-12-22 05:54:28
问题 I have issue regarding SSH connection with my server. When i try to connect it results into error:"Bad authentication type(allowed_types=['publickey'])" Thanks 回答1: Check your username and public key this can cause problem. Attach the private key file with extension .ppk Also verify your connection with putty. Also check for the restriction on server. 回答2: You need to ensure that your private key is in openssh format. With puttygen you can export as Openssh. This worked for me. 回答3: FYI, my

MySQL workbench SSH connection error [Bad authentication type(allowed_types=['publickey'])]

两盒软妹~` 提交于 2019-12-22 05:54:19
问题 I have issue regarding SSH connection with my server. When i try to connect it results into error:"Bad authentication type(allowed_types=['publickey'])" Thanks 回答1: Check your username and public key this can cause problem. Attach the private key file with extension .ppk Also verify your connection with putty. Also check for the restriction on server. 回答2: You need to ensure that your private key is in openssh format. With puttygen you can export as Openssh. This worked for me. 回答3: FYI, my

MySQL Workbench reports “is not valid at this position for this server version” error

半世苍凉 提交于 2019-12-22 04:30:29
问题 For the following SQL query: SELECT COUNT (distinct first_name) from actor; I receive the following error message: "SELECT" is not valid at this position for this server version, expecting: '(', WITH I am a total newbie at SQL. How do I resolve this error? I put the exact same line at another PC with the exact same schema and it worked fine. 回答1: Have you tried to run the query deleting the space between "COUNT" and the bracket? I run a similar query to yours on MYSQL 5.7 and it gives me an

MySQL not working after updating to Windows 8.1 [closed]

老子叫甜甜 提交于 2019-12-22 04:14:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Everything was working fine, I had Windows 8 and MySQL 5.6 workbench. Yesterday, I upgraded to Windows 8.1 which made the PC run better but messed up the MySQL. When I enter the workbench I can see my old connection but by clicking on it I get: Cannot Connect to Database Server Your connection attempt failed for

How can I restore the MySQL root user’s full privileges

主宰稳场 提交于 2019-12-22 00:24:20
问题 I accidentally removed all the privileges from my MySQL root user, Is there some way I can restore this user to its original state (with all privileges)? i m using my sql work bench 6.0 please let me know soultion step by step as i m new in my sql. 回答1: First try GRANT ALL ON *.* TO 'root'@'localhost'; if that does not work then do the following Stop mysqld service with this ( on UNix-like systems) sudo mysqld stop Restart it with the --skip-grant-tables option. Connect to the mysql with just

How to backup MySQL with MySQL workbench automatically

不问归期 提交于 2019-12-21 15:39:33
问题 Guys I'm using MySQL Workbench. Is there a way to use it to backup my database automatically? 回答1: The correct answer is There is no backup scheduling/automating option in MySQL Workbench as of 6.2. You can do manual backup in version 6.x by clicking on DataExport under Management. See below: MySQL WorkBench Data Export Import 回答2: http://community.discountasp.net/showthread.php?t=11972 Making a backup in MySQL workbench is a pretty easy task, but it can be hard to find exactly where to do it

User cannot see databases in mysql workbench

冷暖自知 提交于 2019-12-21 15:24:54
问题 I'm trying to learn Spring Roo using this tutorial. So, what I did was: go to mysql workbench create a new schema called 'pizzashop' access localhost through the server administration account create a new user in 'users and privileges' with name 'pizzashop' and password 'pizzashop', and limit connectivity to hosts matching % when I tried to connect to the server using this account I noticed that it couldn't see any database I tried creating an entry in 'schema privileges' explicity allowing

how to open multiple model/database in mysql workbench

戏子无情 提交于 2019-12-21 07:13:13
问题 I have two model 1) Server Model : conneted to remote database which is stored on server 2) Local Host : connected to my pc database is stored in on pc. I want to query to both database tables simultaneously. Each time i have to switch between database model. How to do it? 回答1: That's a traditional limitation of MySQL Workbench. You cannot open 2 models at the same time in a single instance of MySQL Workbench. On some platforms (like Windows) you can however open multiple instances (just be