how to start Mysql in git bash in windows 8.1 - mysql

hi i want to know there is anyway to start Mysql in Wampserver in git bash Program with command line
like $ Mysql start

The mysql executable is likely not present in your path, so will not be found when you try to execute from any CLI.
Follow the instructions here, adjusting for the version of mysql you have installed.

Related

ED command from wampserver [duplicate]

I am looking for a solution where I don't need to use up and down arrow keys for editing commands. Previously, there used to be an edit command that opened an editor for editing. However, now I am finding no such command exist on my installed MySQL latest version. I installed MySQL in developer mode. Help command is not showing any edit or \e command.
I never knew the edit command existed up until now and tried it in my 5.7 , with no luck of course. Then I did a bit of research. Taken from mysql reference manual for 8.0: MySQL Shell's \edit command (available from MySQL Shell 8.0.18) opens a command in the default system editor for editing, then presents the edited command in MySQL Shell for execution. So I suppose you were using MySQL shell instead of the run-of-the-mill CLI launched by mysql command (or unlocked it in CLI after installing mysql shell). Please download it from MySQL community. The latest MySQL Shell 8.0.29 will do. Personally, I have not got round to trying mysql shell and probably won't do in the future, as I find workbench is too good to part with.

How to use mysql with conda?

I am learning sql and for that I needed to download MySQL on my Ubunutu 20.04. I have some issues with my kernels and therefore can't use sudo. Therefore I created a virtualenv using conda and downloaded MySQL using conda install -c anaconda mysql. Now I need to do setup like setting password for the MySQL and create a database in which I can make tables and learn how to write queries. Can anyone please suggest a way to do it? Any help would be appreciated.
If you just want to use mysql-client in a restricted environment where don't have root access for installing packages; you can simply grab the static binary of mysql (around 4MB) and use it directly from terminal of restricted machine.

Installing mysql noinstall zip archive

I've been trying to use my mysql noinstall zip archive and the steps that I found in some of the websites are not descriptive. Can someone help?
If you follow the instruction here you will be alright. From that page:
Users who are installing from the noinstall package can use the instructions in this section to manually install MySQL. The process for installing MySQL from a Zip archive is as follows:
Extract the archive to the desired install directory
Create an option file
Choose a MySQL server type
Start the MySQL server
Secure the default user accounts
To start the sever run
mysqld --console
and after that run
mysql -u root
to start doing whatever you want.
Notice that MySql will function exactly the same as if you would have installed or configured it to run as a service. Your schema's are stored on disk. If you start it after you've stopped it your previous data will still be there. So it doesn't turn magically into an in-memory database.
If you want to install the MySQL database as a service you can use the command below.
mysqld.exe --install

Activate man in Mac for MySQL

I installed MAMP on my Mac and it installed everything needed such as Apache, MySQL and so on and I can use everything w/o any problem but when I try to say man mysql to read manual on the Terminal, this is the error I receive:
No manual entry for mysql
I did some Google searches but haven't seen anything useful except for manpagez.com which is online documentation.
You can do mysql --help to get all the help for mysql. Is there something specific that you want about man command that you can't do with mysql --help
MAMP is different from actually installing unix stuff.
For unix type stuff like manpages, see macports: http://www.macports.org/ This will also allow you do install things like wget as you would normally do via apt-get.
Note MAMP is the only way I've actually gotten this stuff to get the full XAMP stack working on a Mac.
In terminal navigate to your mysql install, usually in a location like /usr/local/mysql
Then type at the $ prompt: man -M ./man mysql
or: man -M ./man mysqld_safe
I'm not sure where to get a full list of what's in the mySQL man pages, but at least its a start.
as stated before
$: mysql --help is useful too

Recommended MySQL tuning utility for Windows

I have been using MySQL Tuner (http://mysqltuner.com) on Linux for a while and am quite comfortable with it. Now, for whichever reason, we have had to start hosting other websites on IIS. Is there a similar tuning utility that may recommend config changes to MySQL on Windows Server 2008?
Kind regards
I have just ported the mysqltuner.pl script to Windows - see http://mysqltuner.codeplex.com/. It uses the same checks as version 1.2 of the mysqltuner.pl script, but in a nice, friendly Windows application - no need to install Cygwin or Perl.
Ok so this is over a year after the question but I thought it relevant because you can actually still use the mysqltuner script if you combine it with Cygwin.
Install Cygwin
Make sure Perl is installed
Additionally I installed the mysql and the mysqld packages as well (Needed for the script to connect to a "remote" MySQL.
Copy the mysqltuner.pl script to your Cygwin user home directory (Found under cygwin_install_dir/home/your.user)
Start the Cygwin terminal
Run the script $ perl mysqltuner.pl --host mysql_host_ip --forcemem 512
If you encounter an error in the line of:
ERROR 1130 (HY000): Host 'somename.company.com' is not allowed to connect to this MySQL server
Go to the database server and add the appropriate user and privelages
You should now be able to use mysqltuner in a windows environment against local as well as remote MySQL servers.
...screenshots removed because I'm not allowed to use images yet, sorry.
Don't know of another tool (outside the MySQL Instance Configuration Wizard you can run) like mysqltuner which will not run unfortunately. You can install Perl on Windows, but when run the .pl file you will get an error about $PATH not having mysqladmin in it. Upon reading of the manual laughing, it plain as day states there is no Windows support for 1.2.0 version of tool.
You can see if these suggestions help in the interim:
http://www.mysqlperformanceblog.com/2006/09/29/what-to-tune-in-mysql-server-after-installation/
Edit: I just found this: http://www.webyog.com/webyog/monyogscreenshots
MONyog, it is a paid product, though. I installed the trial and it looks very promising. It monitors your SQL server and gives you alerts and recommendations based on those alerts. Might be worth a look. I cannot vouch for too much other than it has some nice information in just a short period of time.