Originally Posted by
ofnuts
The "canonical" way (pardon the pun) is to provide an installation package for your stuff (.DEB file) with a dependency on mysql, so that the package manager install mysql if it's not installed when someone installs your package.
You cannot depend on the user's ability to install packages when your script is run. He could be a plain user with no privileges.
How can i do that?? i mean without depending on the user ability to install packages when my script is run???
how can i connect to Database automatically and execute mysql commands...
like i have to connect to database automatically and show the databases..
but when i tried like this it showed me no results
Code:
mysql -u root -p #Since it will prompt the user for the root password
show databases;
what i am getting is
it is prompting me for password all right but it is not executing the show databases; command why so??
Bookmarks