I am running a NetBeans project on my Windows machine with Glassfish server with MySQL server 5.6. Now I installed wamp 3.1.3 (64bit), but MySQL service is not starting in wamp. I know it is because MySQL is already running on port 3306. I have tried to change port number for MySQL of wamp in my.ini and php.ini files, but this doesn't work for me.
I have tried so many ways to solve this but didn't succeed. Kindly guide me to solve this issue.
I have found a simple solution of my problem. The sequences of the steps has given below.
Backup your data from C:\MySQL\MySQL Server 5.6\data or export your database by using MySQL Workbench
Remove already installed MySQL Server, using MySQL community installer
Now restart wampmanager.exe
import your data into MySQL database
Cheers. It will work smoothly.
Related
So I installed mysql server through the command line on ubuntu. But a few days later I installed xampp which includes mysql aswell. I had some problems accessing mysql and phpmyadmin. Turns out the problem was that the previous mysql I had installed would start up and occupy the port that the xampp mysql was trying to access. After killing the process and relaunching xampp I had no more problems. The thing is I would like to uninstall the previous mysql server I installed and only work with the one xampp provides, specially to avoid this from happening again after I restart my PC. Is it safe to uninstall and purge it from the command line? Will the uninstall affect in any way the mysql of xampp? And how can I tell between the two?
I do notice that there is a mysql folder at /etc/mysql with its config file my.cnf. And then there is another mysql folder at /opt/lampp/mysql with only a readme.txt and a folder called scripts which contains a ctl.sh file. But under /opt/lampp/etc I can also find a different my.cnf file. Should I assume that an uninstall or purge command from the terminal will leave the mysql I use of xampp intact? Is it safe to follow any uninstall tutorial?
And finally, if someone can explain this to me I would like to know. Why did this problem arise after I turned off my computer and booted it up again? I was working with xampp and able to access phpmyadmin without any problems. So, how come that when I started the computer today, xampp was unable to launch mysql because the previous mysql was an active process? Does mysql launches itself automatically on boot? Any answer will be deeply appreciated, thank you.
before I used xampp to start mysql server but recently I installed mysql server 8 and I need to transfer old databases that are in data folder in xampp to data folder that is in mysql server 8 but when I did that I get error when I try to restart mysql service. Can somebody explain to me how should I go about this?
I tried to change all files that is inside of mySql server 8 Data folder but it doesn't work, I still get the same issue.
Xampp is based on mariadb and its version is relatively low, so there will be problems directly by copying the directory. It is recommended to export and import through mysqldump.In addition, it is necessary to ensure that they use different ports, otherwise there will be port conflicts and the database will not start.
I'm using a Macbook Pro. I tried to setup for PHP. The server I'm using is MAMP. After I start MAMP, I can run localhost/phpmyadmin and MySQLWorkbench. But when I try to run mysql through Terminal, I can't connect to my database. I had to disconnect MAMP in order to access my database through Terminal. Then when I restart MAMP, it just connect to Apache Server instead of both Apache and MySQL Server. I figure the port is not 3306 when I run mysql through Terminal. I wonder if I could change the port to 3306 so I can make change to the database I make in the terminal with phpmyadmin. I searched the Internet but couldn't find a solution.
Just now, I couldn't run mysql in terminal. I'm so frustrated. Can somebody help?
Update: I just found out Macbook comes with built-in Apache and Mysql Server. I followed the instruction from below website to set it up and it works. Hope this can help those who has the same problem.
https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-macos-sierra/
Maybe... I had the same problem with 2 versions of php (2 differents locations on disk). phpinfo() saw a version, the terminal saw another. The solution: change the $ PATH environment variable.
Hope this helps...
In the MAMP menu bar>> Tools - I am seeing this:
phpMyAdmin(needs PHP5.5x to 7.0x)
SQLite Manager (needs PHP5.2.x or 5.3.x)
I have 8 sites on one shared database developed locally using MAMP. Never had a problem in the past. I cannot access any of the sites via localhost. - the last site I worked on required a newer version of PHP and I added V7.1.1 - the prior sites are run on earlier PHP versions, built full site using php 7.1.1 locally no problem. - That said, currently
none of the sites will open via localhost.
The only thing I can think of is that I may have upgraded to OS Sierra and maybe that threw off a file? I called Apple they recommend not touching the Apache settings. I reinstalled Mamp, no change.
OS Sierra 10.12.3
MAMP V.4.1.1
PHP V. 7.1.1
I can connect to the internet, and my firewall is off.
I checked my host file - everything is there that should be with the exception of : "sudo killall -HUP mDNSResponder" which I read in an earlier thread - do I need this?
localhost connection message:
"Unable to connect
Firefox can’t establish a connection to the server at localhost:8888."
I thought that by downloading the lastest version of MAMP I would be recieving the latest package of software such as apache,mysqyl and phpMyAdmin?
I humbly ask for any insight and thank you in advance!
I'm having this same issue and just found this on google:
After you run the servers on MAMP/MAMP PRO
TRY THIS:
localhost:8888/phpmyadmin
i want to make connection of PDO to oracle database.
i tried all day to set it up, i am using xampp, installed latest version of xampp.
i tried to follow this guide: Installing PHP and the Oracle Instant Client for Linux and Windows
Also have tried to follow this guide: Activate Oracle on XAMPP for Windows : OCI8
Please anyone help me guide me to the right direction. I am stucked and it is a must to do job, cuz all my work relies on it.
the server i want to deploy my file, runs on oracle database, thats why i want to tryout the oracle in my local PC.