Can't build the MySQL drivers (Qt) - mysql

I'm trying to build the MySQL drivers for Qt. I've downloaded and installed the MySQL Server files and I also got the Qt source files. After that i've tried to build the MySQL plugin, by opening the MySQL pro file (located at Qtbase/src/plugins/sqldrivers/mysql) and I've add path to the MySQL Server files (include and lib). When I now try to build it, I get the error "cannot open file 'mysql.lib'". So I checked if there is a mysql.lib file in the MySQL Server lib path and there wasnt, so I downloaded the C++ MySQL connector, but it doesnt contain a mysql.lib file either. So I need help, I'm not sure if I'm doing it right and if so, where can I get the mysql.lib file?
Thanks for all the help
Greets
Steven

Related

How to put MySQL database in project folder

I'm using Node.JS express and MySQL. Also I have XAMPP installed. Database is in folder C:\xampp\mysql\data\users now, but I want It to be in C:\...my-project\users so I can push it to github and other people could get it with all the other files. How can I move it to another folder and continue working with it on localhost?
Best way is to mysqldump your database.
Then you can mysqlimport your .sql file or simply execute in a sql query.
Also, working on plaintext sql template allows you to use version control.

MySQL Server 5.7 installation fails at "Writing configuration file"

I'm trying to install MySQL Server 5.7.7 on Windows Server 2008 machine. It has failed several times and I tried uninstalling the whole thing and try the installation again. I tried installing one component at a time and it worked for all the components (Workbench, connectors,..etc.) except for the MySQL Server itself.
I'm receiving error at the step "Writing configuration file", the log shows the error details below:
Beginning configuration step: Writing configuration file
Could not find a part of the path 'C:\ProgramData\MySQL\MySQL Server 5.7\my.ini'.
Ended configuration step: Writing configuration file
i had the same problem. to solve it, i simply created the "MySQL Server 5.7" folder in "C:\ProgramData\MySQL" then clicked Retry in the installer
i've had bad experiences with MySQL installers in the past. really surprised it's not smart enough (or too lazy?) to create the sub folders before trying to write the ini file.
hope that helps!

MySql configuration file does not exist where WorkBench says so

I'm new to MySql. I have downloaded and installed MySql 5.6 together with the latest version of Workbench (6.2). Workbench says my configuration file is in
C:\Program Files\MySQL\MySQL Server 5.0\my.ini
This folder does not exist. I have
C:\Program Files\MySQL\MySQL Server 5.6
And inside this folder there is an .ini file called my-default.ini. How can I find the correct .ini file so I can change my variables?
The name and path used by MySQL Workbench by default is taken from a template. There are several templates for various server versions and platforms with typical config file locations. However, they may not always work. On Windows however, with standard installations (which are extremely common), there are only very few variations. The simplest way to have the correct config file stored in the connection settings is by changing the installation type in the System Profile settings for a connection:
The sample config file my-default.ini is just that, an example. The installer should have created a concrete config file in the ProgramData MySQL folder for your server, which is what MySQL Workbench will also use by default.
For someone wants to find the menu answered above,
It can be found when you right click on a connection instance box of your MySQL workbench home and go to edit connection.
I know this question posted 5 years ago, but I had looked for the menu as well and finally find it. I hope I can add a comment but I cannot due to the reputation;)

Set up rails to find the default location of LIBMYSQL.dll

I am on windows 7 and set up mysql through XAMPP.
I am now starting a new rails project (my first time developing in rails), and just set up the project.
I wanted to start the server so I used rails server. However it is complaining that
"The program can't start because LIBMYSQL.dll is missing from your computer"
I know where libmysql.dll is stored at, so how do I tell rails to look there?
Libmysql.dll file is located in the bin directory of your mysql installation.
There also needs to be a copy of it in the Ruby\bin directory.
Copy it there and restart your server or console, if you are already run it.

Unable to load libmysql.dll

I am trying to use dbexpress component first time to connect to mysql
i got this error
Failure to Connect : Unable to load
libmysql.dll
my delphi version : Delphi7
mysql 5.1.36 (wamp server installed on my windows).
can any one help me in this
thanks in advance
DB Express / Delphi 7 did not support MySQL 5 so you'll need a copy of the open source MySQL 5 drivers for DB Express (Found here).
You should also ensure that the libmysql.dll assembly is installed and can be found in your PATH variable. If you need to find it again, it can be found in the MySQL5.X zip distribution in lib\opt
Try to put libmysql.dll to your lib path. If this doesn't help, than get another version of libmysql.dll file.
Delphi 7 is shipped with mysql 3.x drivers. What you need is something for mysql 5. You can find one here,
Follow the instructions on how to add new dbexpress driver in the documentation