I have installed gcloud client library but GCP keeps on giving me this error what could the issue
ERROR: (gcloud.sql.connect) Mysql client not found. Please install a mysql client and make sure it is in PATH to be able to connect to the database instance
The problem is that either you have not installed the MySQL client locally, or gcloud can't find it.
If you have not installed MySQL yet, follow the instructions to do so.
If you have installed MySQL but you're still getting this error, try entering mysql at the shell prompt. If you get a command not found error, MySQL is missing from your $PATH, and you need to figure out where it has been installed.
For example, on OS X, MySQL is by default installed in the directory /usr/local/mysql/bin/. Add this to your $PATH, and it should start working:
export PATH=$PATH:/usr/local/mysql/bin/
We get this error when mysql client is not installed in your machine.
Refer https://www.youtube.com/watch?v=OM4aZJW_Ojs&t=150s&ab_channel=AmitThinks video to install my-sql in windows.
Post installation of my-sql add the path C:\Program Files\MySQL\MySQL Server 8.0\bin to PATH environment variable.
Close and then open your Google Cloud SDK shell and run the command again.
This will solve the problem.
Related
I want to uninstall MYSQL workbench in my PC.after uninstall & while deleting MYSQL, it shows the action cant be completed because of the folder or a file in it is open in another program,Close the folder or file and try again .
I always try to delete folder but I couldnt.
You can't delete the folder because mysql service is using it.
Mysql workbench, by default installs mysql as a service, which is the recommended way to run mysql.
On Windows, the recommended way to run MySQL is to install it as a Windows service, so that MySQL starts and stops automatically when Windows starts and stops. A MySQL server installed as a service can also be controlled from the command line using NET commands, or with the graphical Services utility. Generally, to install MySQL as a Windows service you should be logged in using an account that has administrator rights.
From dev.mysql
On Windows, if you have used an installer to install something, you should uninstall it from Add Remove Programs.
Not only will its installer stop the service, and remove all files but also tidy up registry entries.
I'm attempting to install PostgreSQL (10.1) and pgAdmin 4 for an online course I'm taking. Every time I try to run the .exe file for the download I get the following error message:
There has been an error. Unknown error while running C:
\Temp\postgresql_installer_a8b04b6e60\getlocales.exe
I've tried to Run as Admin, I've tried downloaded previous versions of PostgreSQL and nothing seems to work. I've found others who have had the same issue but haven't found a resolution.
Does anyone know how I can install? Thanks.
Before installation, I closed all antivirus and antispy-patch for cryptolocker. Some rules added by protection softwares, blocked install file from running another place and change-read settings. First I installed pgadmin 4 v1.6, then upgrade it to v2.0.
I also using PHPStorm built-in database browser. Faster than pgadmin4.
I tried to re-install postgresql 9.5.3-1 on my windows 7 without success. In fact, at each attempt, I have the message:
failed to load sql modules into the database cluster
then, I get the message:
Error running post install step. Installation may not complete correctly. Error reading C:/Program Files/PostgreSQL/9.5/data/postgresql.conf
I tried several attempts to solve this issue
change the installation folder
switch to 32-bit
reboot
clean the register before reinstalling
install as a postgres user as describe here (Failed to load sql modules into the database cluster during PostgreSQL Installation)
PS: installation language is French
I finally found a solution to my problem. I just installed postgres as a super administrator
Had same problem. Just double check permission for your data folder. I set full control to authenticated users and it installs correctly.
Same problem here.
In my case it was a backslash \ at the end of the password.
See also https://stackoverflow.com/a/32146553/2443630
I'm trying to configure freeradius 3.0.11 with postgresql but I'm having an issue with the driver listed in the sql file inside of 'mods-enabled.' The driver I am listing is 'rlm_sql_postgresql.'
When I run 'radiusd -X' I get the error:
Could not link driver rlm_sql_postgresql: dlopen(/usr/local/Cellar/freeradius-
server/3.0.11/lib/rlm_sql_postgresql.dylib, 6): image not found
Make sure it (and all its dependent libraries!) are in the search path of your system's ld
/usr/local/Cellar/freeradius-server/3.0.11/etc/raddb/mods-enabled/sql[20]: Instantiation failed for module "sql"
When I look in the folder 3.0.11/lib there is indeed no such file called rlm_sql_postgresql.dylib.
Any ideas on this? Should I be generating this file somehow?
It means when configure was run for freeradius, it didn't pick up libpq.
Apparently brew install postgresql will pull down libpq and its development headers.
Remove freeradius, install postgresql, install freeradius with brew install --build-from-source freeradius-server
It should (unless the homebrew people have gone out of their way to break things), install the postgresql driver.
OS on which I've isntalled pgAdmin: Centos 6.3
Postgresql 9.2 is installed on another machine (not sure if this matters)
Have installed pgadmin3_92 via postgresql repo.
When I go: Applications > Programming > pgAdminIII, and select, nothing happens.
When I enter pgadmin3_92 into the terminal I get
pgadmin3_92: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
I've tried a Google search for this error and it came back with no results. I'm only new with Linux/Centos so I've reached the limit of what to do next to figure out how to get pgAdminIII working.
Any ideas on what to look for/do next?
The error is caused by Centos not being able to find the shared libraries to run the application.
My pgadmin3 library files are installed at: /usr/pgsql-9.2/lib
I ran ldd pgadmin3 as per hints here, this confirmed that the shared library could not be found to run pgadmin.
Also on the same link it shows to change to root user: su - root, and then create a .conf file that points Centos to where the libraries are for pgadmin3. The command to create this file is:
echo /usr/pgsql-9.2/lib > /etc/ld.so.conf.d/pgsql-9.2.conf
For someone else this would be:
echo <location of pgadmin3 libraries> > /etc/ld.so.conf.d/pgsql-9.2.conf
I then ran: cat /etc/ld.so.conf.d/pgsql-9.2.conf to confirm the file had been created and the location of the libraries had been written to the file.
I then ran the following to ensure Centos was refreshed with this new configuration info:
/sbin/ldconfig
I was able to run pgadmin3 after this.
yum install postgresql92
If it is not enough then
yum install postgresql92-libs