The XAMPP installation is done. XAMPP is up and running.
What about the MySQL console? How is possible to start the MySQL console to run some special SQL statements?
|
|
just start mysql using the command example: and find path of mysql , it will be placed in bin directory of lampp, then login example: |
||||
|
|
|
From the terminal type
the DATABASE part is optional. Is just if you want to connect directly to a particular database. For example, let us say the user cyrex with password ubuntu wants to connect to the database linux, you would type this:
if you do not add the database you can eventually go to it by using the use statement of mysql or searching for the database with show databases; |
|||
|
|
Maybe you're wondering about the package Apache Friends Xampp. The only way init is MySql
If it's something |
|||
|
|
|
The latest version of Xampp's Control Panel has a shell button, click that and it may show a dialog box saying that the #bat file needs to be created, and if it should create it now.. You should say Yes. After that, it will open a console window. From that console window you can easily access mysql by typing the following.
in my own personal installation i use the below (because i don't have a pass set for user @root).
Btw, if it isn't obvious already I am using windows, so there could be some differences in the ubuntu version. Hope this helps someone.. |
|||
|
|