This forum is no longer active. Please post your questions to our new community site

Forums MAMPStack

Login, creata database and user problems

Subscribe to Login, creata database and user problems 5 post(s), 2 voice(s)

 
Avatar zedeun 3 post(s)

Hi,

This would be synthesis of different posts in this forum, which are part of my problem I think.

I can’t create database or user in myadmin. I get this :
db_create.php: Missing parameter: new_db (FAQ 2.8)
I did everything in that FAQ, but without success.

Then I tried to make it from command line and see what’s happen. Here I get the problem describe in one post here, but making a ln -s to the socket in /tmp didn’t solve anything, and I could not try to create database or user, since I cannot login to mysql or mysqladmin.

Therefore, I am thinking about the installation configuration, so :

Mac osx 10.4.11
Directory : $HOME/Application/mampstack-1.2-0

There are no problem at all to connect to mysql. But, when I try to add user, nothing happen. Trying to create a record within a table (test), same. Without any kind of error message.

Does anyone can help ?

Subsidiary question, but I will open a new topic for that : I would like to use my data bases in /usr/local/mysql-5.0.67-osx10.4-i686/data/
does it make sense ?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

It seems that you are not connecting to the MAMPStack database. Try the following in a Terminal:

$ cd /Application/mampstack-1.2-0
$ ./use_mampstack.sh

Now you have set the environment properly to use the MAMPStack commands. What command did you use to create the user?

Regarding to use an existing database, phpMyAdmin was configured to use the MAMP Stack MySQL database but you can configure manually to access your database.

 
Avatar zedeun 3 post(s)

Hi,

Well I did it, creating tables or users from myadmin interface within the browser.

Ok had lunch the script use_mamptask.sh, but dunno what am I suppose to do with it ?
Anyway it does not change at all the behaviour of phpmyadmin : Still not able to do anything else than browsing already existing data.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

The “use_mampstack.sh” script load the Stack environment variables so you can use “mysql -u root -p” to connect to the Stack database. If you want to use phpMyAdmin with your existing installation you should configure the /Application/mampstack-(version)/apps/phpmyadmin/htdocs/config.inc.php file.

Cheers.

 
Avatar zedeun 3 post(s)

Hi Beltran and thanks for helping.

Well, even through use_manptask I was not able to connect to mysql or mysqladmin. Just after trial third time (an other day it was not a problem with my password) got it. Between the first and last trial…. well…. I did not do too much… even nothing.
Now If I try to do something else, from phpMyadmin, than reading the databases, I get :
import.php: Missing parameter: import_type (FAQ 2.8)
import.php: Missing parameter: format (FAQ 2.8)
I did everything int the faq 2.8 to fix this without any success.

Denis

Forums MAMPStack