InfiniDB on Windows: configuration - mysql

I'm currently trying to set up an instance of Calpont's InfiniDB on Windows, however I'm currently struggling against a problem:
I set everything up on my development server, created the database, tables etc. Now I want to access the db from my development machine and I can't seem to configure things so that the development machine can connect. In other words, it seems like for the moment I'm only able to connect from 127.0.0.1
I found a manual that details configuration for Linux, but failed to find equivalent commands on Windows.
Any advice?

Although not detailed in the documentation from what I could gather, the way to grant access seems to be through the mysql prompt using a GRANT command.

Related

MySql server not showing proper databases from Ubuntu server

I'm using wsl2 on a windows machine. I want to view my databases that I have on mysql server ubuntu in a GUI such as mysql workbench (on windows) but it seems as the two are not linked. In the pictures provided you can see that when I login to root, it displays different databases, I also use different passwords for root on both servers. When I try to use the root password from the ubuntu server in workbench, I get the error that I cannot connect to the database server.
Ubuntu databases
MySql workbench databases
MySql workbench config
MySql workbench error
UPDATE 2022
I found myself in this same need, and found a good resource that tackles this issue rather nicely. The solution itself predates even this question, funnily enough.
Long story short, check the following GitHub repository. Instructions are available and I can confirm it works on Windows 10.0.19041.1415 and WSL2.
https://github.com/shayne/go-wsl2-host
========================================================
WSL doesn't use the same IP as Windows, meaning you can't access it using localhost. Also, WSL IP changes everytime you boot it, meaning that the credentials for the connection will work only once.
In the sister community SuperUser, this has been discussed and some workarounds are avaliable, but I can't tell if they will work specifically with MySQL Workbench, as they ofter require you to use PowerShell/CMD.
Please, refer to the following discussions, which also provide further sources on the topic (There is one in particular that might be useful if you are running Windows 10 Pro).
Make IP address of WSL2 static
localhost and 127.0.0.1 working but not ip address in wsl windows 10
There are several requests to allow us to set WSL IP statically, so we can register it as a host in Windows DNS Host file and use that alias instead of the IP while setting up a connection (or use the IP itself, since it would be static anyway), but it is not ready yet AFAIK.
After reading the answer from #Jetto, I thought you could create a batchfile like this:
#ECHO OFF
wsl export wsl=$(hostname -I); sed -i -e "s/172.[0-9]*.[0-9]*.[0-9]*/${wsl/ /}/g" /mnt/c/Users/*username*/AppData/Roaming/MySQL/Workbench/connections.xml
This will replace the ip-address to the current ip-address of your wsl instance (relying on the fact that is starts with 172.)
If you start MySQL Workbench after running this script, you should be able to connect to MySQL (or MariaDB) which is running in the WSL2 session.
Disclaimer: I am not responsible for the fact that you did not make a backup of the file connections.xml 😉
P.S. In case you wonder: Yes this instance on my computer uses port 3356. But 3306 should work too if you do not have a local MySQL running.

How can i grant access to mySQL database to other computer within my house?

I'm a beginner in SQL so i'm sorry if the question is too basic.
I just created a database in MySQL Workbench in my computer and i would like to be able to access and modify the database from another computer within my house. I read some solutions but they all require using some external product, is there a way and how can i do this by the MySQL Workbench GUI, or maybe other functionalities from MySQL?
I also installed MySQL community server on the other computer that i would like to connect my database to.
Thanks!
If it's a home network, and both of you are connected via same router, then you can connect to mysql server on the other device using http://ip_of_machine_running_mysql:3306.
ip_of_machine_running_mysql should be the ip of the machine running mysql server.
Worth to note that you need to allow remote connection to mysql if you haven't already done so when you were doing mysql installation.
The steps for enabling remote access differs for your os(windows, ubuntu, mac), but you can easily find tutorials and how to's for changing such configuration.
https://www.brightfunction.co.uk/connecting-to-mysql-server-across-a-local-windows-network/
https://www.techrepublic.com/article/how-to-set-up-mysql-for-remote-access-on-ubuntu-server-16-04/

Connect to Mariadb via sequelpro to a synology NAS

The goal here is to connect to mariadb via sequelpro, or by ssh.
The problem that I found is related with the application itself. If I get access to synology server via ssh, I can access to mysql server. How? Going to the folder and run:
/usr/bin/mysql -uroot -p
However, if I try to connect via sequelpro (see screenshot1), it returns an error(see screenshot2). How can I solve this problem? Any idea?
Worked out for me with the exact same settings on the admin account, might sounds silly but might worth a try...
Cheers,
Maxime
Using the user "admin" does indeed work. In stead of, in my case, the user "frank" with full admin privileges, this one does not work. I am not at all happy to enable the admin account. Would like to find out if there is an other, more secure way of connecting to MariaDB via SSH using database client software. In my case it is Navicat for MySQL, although the problem seems universal to many clients.

Connecting my MySQL databases to phpMyAdmin

I am running Mac OS 10.10.2. I have recently been educating myself about php and SQL in order to create an online database application for my employer. However, I have been unable to load up my MySQL databases in phpMyAdmin. I have tried following some advice from this forum, but no answers seem to solve my issue.
I installed MySQLWorkbench (Ver. 6.2.4.12437) as well as XAMPP (Ver. 5.6.3-0), and was using phpMyAdmin to have a play around and better understand what I was getting myself into. I then found one of those follow-the-bouncing-ball type teaching websites which advised me to download and install the MySQL community server (Currently running Ver. 5.6.23)
As instructed, I was learning SQL commands through Terminal and built up some databases/tables this way. I decided I wanted to jump into phpMyAdmin where I felt it'd be easier to continue my work. At first XAMPP was unable to turn on the servers which I overcame by uninstalling and reinstalling. Then I was getting a #2002 error when trying to access phpMyAdmin. I tinkered with config files and put in details relating to my localhost MySQL server (Or at least I assume as much).
I was able to get back into phpMyAdmin finally, but my databases made through terminal are not there.
phpMyAdmin shows: cdcol (the example database), information_schema, mysql, performance_schema, phpmyadmin, and test.
If I open terminal and punch in 'mysql' then 'SHOW DATABASES;' it only lists: information_schema.
If I open terminal and punch in 'mysql' with username 'root' and my password, then 'SHOW DATABASES;' it lists: information_schema, mysql, performance_schema, my tutorial/learning database, and my business database. I dropped the test database from here. THESE are what I want to bring up in phpMyAdmin.
I can only guess that I haven't got it configured properly to access this last mysql server, but I can't determine where I am going wrong. If anyone can shed some light on this, that'd be greatly appreciated.
It appears as if you have two MySQL instances; one from the XAMPP and also the MySQL Community Server that you installed yourself.
The "M" of XAMPP is for MySQL, so yes usually it runs its own MySQL server instance. That's sort of the point of the packaged kit, so you don't have to worry about having any of your own applications installed. In theory it should be no problem to stop the XAMPP MySQL instance and instead use your other one, but may require tweaking some configuration files and is probably not supported. If you can make it work, I don't see a reason why it would be a problem, though.
My suggestion is to either use the complete XAMPP stack or roll your own installation rather than mix and match.

connect to mysql with wavemaker

I have recently downloaded Wavemaker because I feel it best suites my needs, however when I try and connect to my database on a mysql server hosted with godaddy, I keep getting access denied. However I can connect using exactly the same loggin info for sql workbench and razorsql just to see if I had my credentials correct and I have no problem connecting using those other two tools, is it me or is wavemaker being a pain?
Did you remember to install the MySQL JDBC DRIVER?
If not you can get it from the MySQL site, or install it on your Linux machine using the appropriate install commands. I had the same problem and after installing the driver everything worked great.
I'm posting my WaveMaker MySQL connection info (the database properties file) in hopes it might help:
mafiamgr_warmturkeyDB.connectionUrl=jdbc\:mysql\://localhost\:3306/mafiamgr_warmturkey?useUnicode\=yes&characterEncoding\=UTF-8&zeroDateTimeBehavior\=convertToNull
mafiamgr_warmturkeyDB.tableFilter=.*
mafiamgr_warmturkeyDB.driverClassName=com.mysql.jdbc.Driver
mafiamgr_warmturkeyDB.username=topsecret_xref
mafiamgr_warmturkeyDB.password=568626f144a0c56862568626f14047568626f1412a43
mafiamgr_warmturkeyDB.reverseNamingStrategy=com.wavemaker.tools.data.reveng.DefaultRevengNamingStrategy
mafiamgr_warmturkeyDB.schemaFilter=.*
mafiamgr_warmturkeyDB.dialect=com.wavemaker.runtime.data.dialect.MySQLDialect