mysql-workbench

Moving and Backing Up a Large MySQL Database

痴心易碎 提交于 2019-12-08 07:55:04
问题 I'm using MySQL Workbench and I've built a very large (17 GB) database. MySQL puts the data in a single file called ibdata1 in the C:\ProgramData\MySQL\MySQL Server 5.5\data directory. I'm out of space on my C drive and I would like to move it to my external drive. Is it possible to move that ibdata1 file and then tell MySQL to point to another location to find it? Also, if I want to back up that data, can I just copy the ibdata1 file and save it. And then if my computer were stolen or

how to import data from mysql database to datagridview

你离开我真会死。 提交于 2019-12-08 07:10:42
问题 i have a table in mysql database named cms.order and i am working on a widows form using C#. How can i show the data from the table in database in the datagridview of the windows form 回答1: You can use the following code to read the table data from database and display it into data gridview. string connectionString = ""; //Set your MySQL connection string here. string query =""; // set query to fetch data "Select * from tabelname"; using(MySqlConnection conn = new MySqlConnection(connStr)) {

linux mint mysql-server and mysql-workbench installation and setup issue

百般思念 提交于 2019-12-08 06:54:34
问题 I tried to below OS installed on my laptop Mint version 19, Code name : Tara, PackageBase : Ubuntu Bionic Cinnamon (64-bit) I have installed mysql-server using below command: xxxxxxx:~$ sudo apt-get install mysql-server During this installation I was not prompted to enter any root password. TO see if installation was successful, I ran below command: xxxxxxxxxx:~$ mysql -V mysql Ver 14.14 Distrib 5.7.23, for Linux (x86_64) using EditLine wrapper xxxxxxxxxx:~$ sudo service mysql status ● mysql

prevent delete * from table unless primary key specified

依然范特西╮ 提交于 2019-12-08 05:43:44
问题 I want to prevent user from using deleting * from table unless primary key specified, one of our team member accendently used "delete * from table_name" i want to prevent such scenarios in future. 回答1: Would safe updates be viable for you? This is an option you can enable on the command line, in the option file or set a variable in SQL code that prevents updates and deletes without a where clause that includes the key columns defining the rows to change. In MySQL Workbench there is a setting

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object

℡╲_俬逩灬. 提交于 2019-12-08 04:55:40
问题 I'm using Tomcat 7, MySql Workbench 5.2.27, JSF 2.0 and this exception comes from the ManagedBean(TripTableBean.java) of my web page(Trip Record.xhtml). It comes up whenever I click to go to Trip Record.xhtml after navigating through my other web pages. Pardon my horrible codes... TripTableBean.java org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource

1290 Error on Google Cloud SQL

故事扮演 提交于 2019-12-08 00:47:59
问题 I just started getting this Error today while using MySQL workbench, and noticed it showing up in my application as far back as saturday. Anyone else getting it? Have any idea what might be causing it? ERROR Error Code: 1290. The MySQL server is running with the --read-only option so it cannot execute this statement Running just a simple insert generates the error. Eg.. INSERT INTO Job1111 . SubsWeld ( fk_SubmissionId , WeldSpool1 , WeldSpool2 , WeldDrawingNumber , WeldLineNumber ,

prevent delete * from table unless primary key specified

拜拜、爱过 提交于 2019-12-07 07:22:27
I want to prevent user from using deleting * from table unless primary key specified, one of our team member accendently used "delete * from table_name" i want to prevent such scenarios in future. Would safe updates be viable for you? This is an option you can enable on the command line, in the option file or set a variable in SQL code that prevents updates and deletes without a where clause that includes the key columns defining the rows to change. In MySQL Workbench there is a setting in Preferences -> SQL Editor -> Safe Updates (rejects UPDATEs and DELETEs with no restriction) . I believe

How do I automatically execute a MySQL script or routine after forward engineering from model

痴心易碎 提交于 2019-12-07 06:54:05
问题 I've built a EER Model in MySQL Workbench that I forward engineer to create the database. The forward engineering works perfectly, and the database is created from the diagram as expected. Apart from tables, there are also some Stored Procedures (aka Routines) that I've included in the model. These routines are designed to only be run once, as soon as the database has been set up. They automatically insert necessary data into the tables. My question is, how can I get the forward engineering

MySQL Workbench: Unable to see text

大憨熊 提交于 2019-12-07 06:27:19
问题 My installation of MySQL Workbench is rather unusable because of the font/background colours. Initially I assumed that this was due to the Light/Dark theme on Mac OSX Mojave, but I have switched between both and it still remains the same. The problem has only started since I upgraded to Mac OSX Mojave. Is there anything I can do to make things more visible? Edit: My currently selected theme is the 'Light Theme' 回答1: MySQL Workbench 8.0.13 doesn't support the new dark mode of macOS Mojave yet.

MySQL Workbench Inserts

若如初见. 提交于 2019-12-07 03:06:39
问题 I am using MySQL Workbench 5.2.28 for designing my database schema. I need to insert default data into some tables which can be done using the "Inserts" tab. However, it seems like it only allows entering data manually, one row at a time. I have an OUTFILE with several hundred rows that I would like to insert. Is this possible with MySQL Workbench? Would creating separate MySQL scripts for importing default data be a better approach? 回答1: I am now using separate sql scripts for inserting my