I am a new programer for sql.
I have install the SQL application on my laptop then I am going over to my computer and clicking on properties then changing the advance system settings from there and from there I am going to the environment variable and I am adding a new path for sql
I am going to cmd prompt in my Windows to install the database but it's giving me and error, which says cannot find the file specified
enter image description here
Without seeing your PATH it's hard to know what's up. But generally speaking, make sure the mysql path can be found, and if it can be found, make sure that the employees.sql is indeed in the correct folder.
Related
I have a problem to export a small database using MySQL Workbench's Data Export function on Windows 10.
Previously I have had no problems exporting and importing databases, although after this happened I have changed the security of the server to legacy to get it working with phpMyAdmin using the MySQL Workbench Installer, which I have been unable to change back as when trying to execute the change I got an error stating the installer was unable to create the temporary user (running this as administrator didn't help).
Since then I have also updated MySQL Workbench, the server, and the rest of the components that were installed with it, which seems to have gotten rid of the MySQL Workbench Installer application, as such i am unable to provide the exact error it gave regarding being unable to create the temporary user.
I'm not 100% sure if the above is relevant to the issue but it does seem like it could be related.
The issue that I'm trying to fix is that MySQL Workbench will not export any (or all of) the databases I have set up to a self contained file. The error I keep getting is below:
09:47:47 Dumping va_form (all tables)
Error executing task [Errno 2] No such file or directory: u'D:\Mike\Desktop\Dump20190226.sql'
09:47:47 Export of D:\Mike\Desktop\Dump20190226.sql has finished
I was previously getting a similar error about access denied, which then lead me to change the default dump directory to my desktop, as I'm only going to need to dump files occasionally and sort and send them elsewhere straight away.
I have also tried disabling column-statistics and lock-tables although this has had no effect.
As you can see, at the start of the directory it's trying to dump to it says "u'D:\\" - I am not sure if this leading u is significant, although it is not there in the directory I have specified to dump the file to.
I'm hoping someone here has some insight into this issue, I have no idea why MySQL Workbench's installer was refusing to make the temporary user (even when being run as administrator) and why I cannot find the installer now, as well as the obvious problem of why MySQL workbench is unable to create the file to dump anywhere on the system.
Thanks very much for your time reading this.
It is probably an issue with a recent update of Windows Defender, not with MySQL.
Try to save your dump to folders located somewhere else than Desktop or Documents (I usually send them directly to a cloud service integrated with my OS). If this works, you just need to add an exception for MySQL in Windows Defender.
So I'm trying to use a script generated by MySQL workbench to load a data dump into a MySQL database, however, I cannot seem to get rid of this error no matter what I do "wbcopytables.exe doesn't exist in the supplied path. Please set 'wbcopytables_path' with the proper path(e.g. to Workbench binaries)" The thing is, the path is set correctly (the default destination MySQL workbench is installed. This error is thrown in Powershell. When I try to run the script through the cmd line it simply closes and nothing happens.
I ran into the same problem, I've used the script in the past but it wasn't working after updating windows to 10 from 7. I had to do a fresh install of MySQL Workbench, so the bug might be in the latest version? Not sure. Here's the fix...
Remove...
if not ["%wbcopytables_path%"] == [] set "wbcopytables_path=%wbcopytables_path%"set "wbcopytables=%wbcopytables_path%wbcopytables.exe"
And replace with...
set "wbcopytables=%wbcopytables_path%\wbcopytables.exe"
worked for me, note sure if it's a "proper" fix, none the less, best of luck.
I'm trying to change mysql to return the error in Portuguese.
I already added in the file my.ini the line "lc-messages = pt_BR"
It still keeps returning the error in English.
Does anyone know how to help me in this?
Before I came to ask for help I already researched and could not solve this
My version of Xampp is v3.2.1
PS: Sorry for the English
Changing the language is not so much a XAMPP nor PHP thing but rather involves a MySQL configuration file aka an option file. Take a look here. You should change your my.ini file to include this server command option:
lc-messages=pt_BR
If you are using XAMPP 3.2.1, then you most likely are using MySQL5.6 and the correct way to express this locale change option is to write "lc-messages", i.e. use a hyphen and not an underscore in an option file or on the commandline; see here.
Be sure to save the file and then you should restart the MySQL server.
Note: the actual environment variable is lc_messages.
I have the sql dump for a wordpress install that lives on a domain. I need to make some changes to the site so I have set up a localhost using MAMP.
If I import the sql dump "as-is" it imports without a problem. However I need to change all the URL's in the sql dump to point to localhost instead.
When I use Aptana to do a replace all on the sql file from http://example.com to http://localhost/example and try to import the modified file to mysql I get the error "#2006 - MySQL server has gone away"
What is the problem here? I have temporarily fixed by overriding my hosts file for example.com to point to my localhost but this is not a long term viable option.
I am aware this error usually occurs for files that are too large or the server not responding but I am always able to import the non-modified version of the sql. Also there are 9538 replaces being done so I cannot go through 1 by 1 to find the culprit.
Thank you
(Just realized that it doesn't relate DIRECTLY to your problem, but you still need this info if you are doing Search and Replace in your MySQL dump).
Data in the WP database is serialized. You can't just search and replace.
You can't just change the data without re-serializing it.
There are scripts and services that allow you to do a proper Search and Replace.
I usually use this tool (git repository here), and it works perfectly. There are also a couple plugins that work, and just discovered this service from a theme creation company that does the same thing.
Good luck and happy wordpressing.
I have my site up and running, and I need to change now database to outside host I just purchased, but it keeps showing error...
I use CakePHP, I configure database.php file
Funny part is that layout works, it shows as it's new database selected, but view inside isn't working, it keeps telling me that there is no that file found...
I don't know what is relation between database.php and files, but it simply won't work...
If I'm move to new database host, what should I change beside database.php?
Is CakePHP caching data somewhere or something that I should change/delete/update?
Or is there another file that should be changed?
Please help!
I need this, users are on site and keeps seeing errors!
Possibilities: If you moved from a windows test server to a Linux production server, you could have case differences in your names.
Another thought is that you did not actually upload all the code files to the server.