When i connected mySQL databases to dreamweaver I only saw the default databases, none of the ones I created in myPHPadmin, I am running MAMP 2.2 on Mac OS X 10.7.5 Dreamweaver CS6, I am going to the databases icon on the right side of the screen in "App Developer Plus" viewing mode. I am trying to add a database with mySQL connection:
Connection Name: registration, mySQL server: localhost, Username: root, Password: my set password, Database <--- here is the error when I click select; it does not show the databaes I made in myPHP admin. called Registration and Dbank; I'm expecting to see these databases as I can see them in myPHPadmin. but in Dreamweaver after connecting to mySQL i only see: information_schema. mysql, performance_schema, and test.
Nothing seemed to work.. so I thought it could be an error created when i had installed mysql before installing MAMP, So i removed mysql standalone, and when I removed mysql, the databases no longer connected at all in dreamweaver. I got an error:
MySQL Error #2002
No such file or directory so THEN I have tried
Formating my computer and reinstalling all Dreamwweaver, MAMP, and re-enabling everything --> SAME ERROR :(
Setting the path in terminal to include /Applications/MAMP/Library/bin/mysql in .bash_profile --> SAME ERROR :(
In Terminal doing:
cd /var/
sudo mkdir mysql
cd (to get back to root)
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
--> SAME ERROR :(
Why can't Dreamweaver just connect to the databases.? PLEASE HELP!
Related
I have installed XAMPP on macOS with m1 chipset, and I am unable to run it through console, I have read several articles but all I was able to accomplish is that when I type source ~/.bash_profile I get /Applications/XAMPP/bin/php instead of /usr/bin/php but when I type mysql -p root -u and then show databases it does not show me preinstalled by XAMPP databases and on window it did, like the path was leading to some other directory than the one with the app installed but it kind of shows corect one, could you please advise me on that? This is my ~/.bash_profile
export XAMPP_HOME=/Applications/XAMPP
export PATH=${XAMPP_HOME}/bin:${PATH}
export PATH="~/.composer/vendor/bin:$PATH"
export PATH
Recently I uninstalled the Wamp Server and re-installed the newer version of Wamp Server which is 3.1.3
Note: I am using Windows 10
Below are all the details of Wamp Server:
Apache Version: 2.4.33
PHP Version: 5.6.35
MySQL Version: 5.7.21
phpMyAdmin Version: 4.7.9
When I click on MYSQL Database in phpMyAdmin and then click on Export, the phpMyAdmin shows blank page. However, when I click on Import, phpMyAdmin doesn't show blank page at all. But the strange thing is when clicking on Export, phpMyAdmin shows Blank Page.
Since, I'm trying to export a Database from phpMyAdmin, I need to make sure that the page doesn't go blank when clicking on "Export" button.
I'm not sure regarding how to approach this problem because I'm very new in phpMyAdmin.
Would be really helpful if any recommended advice or solution is provided.
If you want to export the database using Command Line, then in that case, you can use mysqldump command.
If it's an entire DB, then:
$ mysqldump -u [uname] -p[pass] db_name > db_backup.sql
If it's all DBs, then:
$ mysqldump -u [uname] -p[pass] --all-databases > all_db_backup.sql
If it's specific tables within a DB, then:
$ mysqldump -u [uname] -p[pass] db_name table1 table2 > table_backup.sql
You can even go as far as auto-compressing the output using gzip (if your DB is very big):
$ mysqldump -u [uname] -p[pass] db_name | gzip > db_backup.sql.gz
uname - Username of database
pass - Password of database
You can check this answer
If you are using Windows then you need to change directory to C:\wamp\bin\mysql\mysql-version\bin and do above steps.
If you're using Ubuntu.
That problem caused by, you have not installed libapache2-mod-php.
So, install with :
$ sudo apt install php libapache2-mod-php
then restart apache
$ sudo service apache2 restart
[MacOS 10.14.0]
When I create a new project (Laravel new blog)
Then create a table in MySQL (create database blog)
And then update my .env file with the correct userame, password and database.
After creating a project, I will run php artisan migrate
But my terminal stays empty, I can type in my terminal. But it won't do anything.
My storage/logs folder is empty.
I have 2 default migrate files in my database/migrations folder.
php migrate list works
What can it be?
For me it helped just to restart local database.
After a lot of trial and error, I found out that there was something wrong with my MySQL server. I reinstalled MySQL with brew. The latest version of 8 and the latest version of 5.7.*. Both didn't work, because of the following conflict: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so, 2): image not found.
So the whole time, everything in my .env file was correct but my MySQL was broken. I also confirmed that by trying to connect with the app 'Sequel Pro'. And as I thought, it gave me the same conflict.
How I fixed the problem:
Remove all MySQL/MariaDB packages via brew (if you have installed them with brew like me)
Install MySQL Community Server 5.7.* from the official mysql.com website (you can google that file).
Add MySQL to your path export PATH=$PATH:/usr/local/mysql/bin
Go to: System Preferences -> MySQL -> press 'Start MySQL Server'
Change your temporary password with a new one mysqladmin -uroot -p[temporary password] password '[new password]'
Good luck! 👍
EDIT FEBRUARY 26 2019:
I found a problem with changing the random generated password. I was using MySQL Community Server 5.7.25 and the random generated password was: _>9mxWc9a!0.. When I was trying to change the default password with the command above. I was given the following error:
-bash: !0: event not found
If you have the same error as I did or something similar, try the following:
Enter the following command in your terminal: mysqladmin -uroot -p password '[new password]'
When you press enter, it will ask you for a password. Now enter the random generated password that was given to you by the MySql Community Server at installation in a prompt.
It should be working now! 😊
If you're using Docker and getting this error on the host machine, try running the migration in the container cli.
did you connected the laravel project to the database from .env file ?
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=DATABASE_NAME
DB_USERNAME=DATABASE_USERNAME
DB_PASSWORD=DATABASE_PASSWORD
Laravel 5.8 with SQLite.
My problem wasn't with larvel but with DB browser for sqlite. I had to open and close the program for the migrate to finish its process.
I'm trying to upload a file to MySQL via MySQL client and keep getting a "#2006 - MySQL server has gone away" error. I looked into it and think it can be fixed by typing "mysql --max_allowed_packet=10MB". What folder do I have to cd to in order to use this command? I've looked into it but the folder varies greatly depending on what server is used. As such, I'm using Wampserver 2.5.
Run cmd command
Type c: or d: on command prompt. This will be based on your WAMP server installations.
Assuming you have installed wamp on D: drive.
cd D:\wamp\bin\mysql\mysql15.1.36\bin
D:\wamp\bin\mysql\mysql15.1.36\bin>mysql.exe -u root
I am setting up my first data base using XAMPP. I followed the steps from
dev.mysql.com/tech-resources/articles/mysql_intro.html
but as I try to connect to mysqlserver by typing "mysql -u root" into my Terminal I get back an error message:
Phosphoros:~ Arthur$ mysql -u root
-bash: mysql: command not found
Phosphoros:~ Arthur$
I am using Mac OS X 10.7.5.
How can I connect to the server?
Arthur
Your terminal application doesn't know where to locate the mysql program.
For example, if you installed xampp in C:/xampp, you open a command prompt, cd to C:/xampp/mysql/bin and then run your command, which should work now.
Edit: Just remembered you mentioned OSX, regardless, use the same principle. In your terminal, cd to the XAMPP install subfolder which contains the mysql executable app
you have to run the command: mysql -u root in the mysql directory that exists in the /opt/lampp directory.