I have a project that uses Entity Framework 6.1.3 and uses the 6.9.9 MySQL connector with a MySQL 5.6.x DB. I have MySQL on Ubuntu 16.04 on a remote image and I have a matching Docker image running on my local workstation.
The Docker image works. I can use EF's Update-Database command on my Docker image. I can run my application and all the SQL things happen as they should. But nothing works on the remote. From the start, I get a timeout error when I run Update-Database from the Package Manager console in Visual Studio 2015.
I can, however, connect to the remote image with DataGrip on my workstation and perform all of the same SQL commands that are performed by Update-Database. In my mind this precludes network / firewall / configuration / permission issues. This points an accusatory finger at Visual Studio, Powershell, and Entity Framework.
How do I diagnose what is happening with the Update-Database command?
Assuming your MySQL port is 3306, when you launch docker, try publishing the port:
docker run -d -p 3306:3306 my-mysql-image
Fire up VS after and see if that resolves your issue.
Related
I wanna connect to mysql database which is on my Mac from parallel desktop(windows 11) ,but I can't. How can I connect to Mac IP from my parallel?
(I tried to install mysql workbench on parallel but it says "your processor is not adequate). So, I had to install database on Mac.I also tried bridged wifi and using localhost but it can't find the database.
I have a partial solution for you. I modified the MySQL Workbench installation to run on Mac ARM. I also use USB Webserver to run a MySQL database on Windows ARM. MAMP and WAMP don't seem to run on Windows with Parallels.
I too am trying to figure out how to access a database running on Mac from C# Windows Apps on Windows. Have not had success yet.
You can get the install files for Workbench on my github page.
https://github.com/shadsluiter/MySQLWorkbenchM1MacParallels
After updating to MacOS Mojave, I installed WordPress locally with WordPressify
I installed the latest version of MySQL and added a database via MySQLWorkbench.
MySQL was up and running. Everything seemed to be working. Running the development server launched the WordPress initial configuration page. Database credentials were correct. Still, WordPress was unable to connect to the database.
First step to solving this was to enable debugging in wp-config.php:
define('WP_DEBUG', true);
This revealed that the database was running, but the authentication method was failing. This was solved in System Preferences... MySQL... Initialize Database
and selecting Use Legacy Password Encryption.
Hope this helps!
I have a Server running CentOS 6.0 and I'm trying to use it as a remote host for cuda debugging. In order to do this, I installed cuda-toolkit 5.5 both on the server and my notebook, which is running ubuntu 12.10 OS. I configured the two machines as the NVIDIA-cuda-instruction told me, yet when I started the Nsight eclipse edition and tried to remote debug my cuda applications, I ran into error, whcih says:
Failed to execute MI command:
-target-select remote 192.168.2.105:2345
Error message from debugger back end:
192.168.2.105:2345: Connection timed out
I googled this error, someones says it is a firewall issue and I need to open the port manually, so I modified the /etc/sysconfig/iptables file and add this:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2345 -j ACCEPT
to open the 2345 port. But it turn out to be of no use. Can anyone give me some suggestion and help me solve this problem?
By the way, I have tested local debugging using nsight eclipse edition on my server, and it works well.
I have the same problem in an OpenSuse server. I have managed to make it work by disabling the firewall in the server.
#/sbin/rcSuSEfirewall2 stop
You can start later by
#/sbin/rcSuSEfirewall2 start
At first, I use Struts 2 to develop a website in Java web technology. So I installed Apache Tomcat as the localhost server and MYSQL as the database (MYSQL here is the full application from mysql.com, not the packages like XAMPP or WAMP...)
But now I switch to learn a little bit about PHP so I install WAMP full package. When I start all services of WAMP and go to browser and type localhost, everything work fine
But when I go to localhost/phpmyadmin, it seems to connect to the old MYSQL application in my computer (what I've used in Java web). And then I restart computer and use MYSQL Workbench (in the MYSQL application), but now it connects to the database of WAMP package, and I can not connect to the old database (in Java web) anymore
The solution is remove WAMP but I need WAMP for PHP
So I just want to ask how can I use MYSQL application and WAMP package together (MYSQL application for Java web and WAMP package for PHP)?
Thank you and apology for my bad English!
Go to C:\Program Files (x86)\MySQL\MySQL Server 5.1 and open my (Configuration file) and then navigate to
[client]
port=3306
Change this to
[client]
port:3307
This will make phpmyadmin to run on 3306 and Java-Mysql to run on 3307
You can of course keep both XAMPP and WAMP running together keeping in mind that you have changed the default ports for either of it to some other ports rather than 80,443 and 3306, but sometimes it could create conflict as when you install some other third party softwares or enable certain services that run on port 80,443,3306.
The best alternative here would be to install one of the servers inside a virtual machine with network configured as "host-only-adapter" so that from the base machine you could access XAMPP/WAMP installed on the virtual machine by just pointing the ip-address of the virtual machine through a web-browser.
or,
If you want to run both XAMPP and WAMP together on the same machine but access only one of the servers at a time then you could go ahead installing both of them one after another. But, keep in mind that before installing the other server you have to completely stop all the services running from the XAMPP or WAMP control panel then quit the application. After this step you can go ahead installing the other server without changing any configurations or port numbers. This is because in this case we assumed that only one of the servers would be accessed at a time. Hence, before launching the other server one has to completely quit the application that is running currently by stopping all of it's services. If skype is installed then one has to change the default incoming connection ports to other than port 80 and 443.
Like mentioned above, if at all the intention is to access both servers up and running concurrently then taking advantage of a virtual machine would be the best to avoid conflicts and a long-term troubleshoots eventually.
If you messed up changing ports and config files then you could end up with the following error while trying to access phpmyadmin from XAMPP control panel:
**mysql said: Cannot connect: invalid settings. xampp**
note: while launching the servers , run it as administrator else some services will not start properly.
"I TRIED INSTALLING BOTH XAMPP AND WAMP ON WINDOWS 10 AS SUCH AS POINTED BY MANY THREADS I CHANGED THE DEFAULT PORTS FOR MYSQL & APACHE XAMPP AS IT WOULD CONFLICT WITH WAMP ALREADY INSTALLED ONLY ENDING UP UNABLE TO ACCESS PHPMYADMIN FROM XAMPP CONTROL PANEL. THEN REINSTALLED XAMPP WITHOUT CHANGING ANY CONFIGS OR PORTS. STOP THE WAMP SERVICES, QUIT THE APP AND THEN LAUNCH PHPMYADMIN FROM XAMPP CONTROL PANEL. AT LAST IT WORKED!. THE PROCESS LOOKS SHORT THOUGH WHEN IN REALITY IT TOOK ME COUNTLESS HOURS AND PAIN RESEARCHING ON THE WEB AND TESTING FOR A POSSIBLE SOLUTION UNTILL I CAME UP WITH THIS."
Hopes, this quick tips and guides would be helpful.
I just installed mysql workbench CE 5.2.
I tried to create and open a connection
and it said "Can't Connect to MYSQL server on '127.0.0.1' (10061)"
I looked around the answers on stackoverflow.
Eventually I found my way on services.
I saw that Mysql was not there.
dev.mysql.com says that I should install it with "mysqld" but it's not found inside the workbench installer.
What should I do?
If there is a way please tell it step by step.
Thank you!
Have you installed MySql server on the local machine? Workbench is just a GUI program to make it easier to access a database - be it on you local machine or a remote machine.
Just install mysql on your local machine. See http://dev.mysql.com/downloads/
There's a MySQL Installer for Windows which does install everything you need in this regard. Including several different server version, connectors, tools like Workbench and more. This installer should be your first attempt.
Of course you can also install the server separately. Download the msi and run the installer. Make sure you name your service properly. mysqld is usually not a name we use on Windows for a service. I recommend something like MySQL56 (for a 5.6 server).