Elnora Inviato 4 Ottobre 2007 Segnala Condividi Inviato 4 Ottobre 2007 Ciao a tutti, ho cominciato da poco a dedicarmi intensamente al web mastering e ho un macBook 2,16 GHz Intel con dreamweaver8. Purtroppo ho provato in tutti i modi a far partire Apache (già installato e tutto) seguendo l'articolo della macromedia (http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html), ma non sono riuscito ad installare il database Mysql. Sono arivato fino a questo punto: Creating a MySQL Account Before installing MySQL, you must create a user account named mysql and a group called mysql (the MySQL database will be running under the same username and group). The mysql name and group should have been created when you installed Mac OS X 10.2 (Jaguar). This has nothing to do with installing MySQL database. The system creates this account and group by default. To verify that your Macintosh has this account, follow these steps: 1 Launch NetInfo Manager by going to /Applications/Utilities/. 2 If the NetInfo Manager's domain list does not start, select Domain > Open and enter: / for the Domain entry. Click OK 3 Under the second column of the Domain list, you should see a list of things such as aliases, groups..........users. 4 Select users to verify that the user mysql exists. 5 Select groups under the second column to verify that group mysql exists. 6 If the user and group named mysql do not yet exist, create them as follows: a The easiest way to create any new account is to use the System Preferences Accounts. b Create the mysql user account the same way you would create any new user account. Use the following steps: i Click New User. ii Enter MySQL User for the Name. iii Enter mysql for the Short Name. iv Do not enter a password and uncheck both "Allow user to administer this computer" and "Allow user to log in from Windows". v Click Save. Click Ignore when the system prompts you with "No password has been set for this user." Sia in users che in groups mysql è già configurato di default. Ma quando si tratta di andare al passaggio seguente cominciano i problemi, cioè: Installing MySQL Database By default, if you have Mac OS X 10.x server installed, this process has already installed MySQL database for you, too. If you have to install MySQL, however, it's a simple process that takes no longer than a half hour (I went through this process). Compiling your own MySQL has several benefits over the precompiled binary. These benefits include adding or removing features that you do not need, adding/removing the configurations, and always having the latest version. For most systems, however, the precompiled binary should be sufficient. Below, I will walk you through the precompiled binary of MySQL. You can download the precompiled MySQL binary from http://www.entropy.ch/software/macosx/mysql/. Once you've downloaded the MySQL installer from the entropy.ch website, double click the MySQL installer package (mysql-3.23.53.pkg) and follow the instructions. By default, the MySQL installation installs in the /usr/local folder. Note that all steps hereafter will be in UNIX. If you know UNIX, this benefits you; however, if you are not familiar with UNIX, don't panic. It's very simple if you follow these steps below carefully. 1 Double click the MySQL Installer to install the MySQL database. 2 Launch the Terminal utility. 3 At the UNIX shell prompt, enter: cd /usr/local/mysql 4 Enter: sudo ./scripts/mysql_install_db This will execute the shell script to create the MySQL system tables and set up all the necessary files. 5 Enter: sudo chown -R mysql:mysql data This UNIX command changes both the owner and group of the data directory to mysql. 6 While staying in the /usr/local/mysql/ directory, start the MySQL database. Enter: sudo ./bin/safe_mysqld --user=mysql & 7 If you need to set up the password for the root account (this root account is the super user of MySQL database), enter: /usr/local/mysql/bin/mysqladmin -u root password 'new-password' 8 To test if you can log in using the root account, enter: /usr/local/mysql/bin/mysql -uroot -p mysql When prompted for a password, enter the newly created password. The mysql> database prompt appears. PROBLEMA N.1: Vado sul sito per scaricare l'installer come da istruzioni (You can download the precompiled MySQL binary from http://www.entropy.ch/software/macosx/mysql/.) ma per mac intel non mi sembra che nessuna delle versioni mysql riesca a funzionare. Se qualcuno conosce la versione funzionante mi faccia sapere qualcosa per favore! il PROBLEMA N.2 credo sia la diretta conseguenza di non aver trovato la giusta versione, infatti quando si tratta di seguire il punto 4: 4 Enter: sudo ./scripts/mysql_install_db This will execute the shell script to create the MySQL system tables and set up all the necessary files. la risposta del mio terminale è: ./scripts/mysql_install_db: line 1: ./bin/my_print_defaults: cannot execute binary file Neither host 'Elnora.local' nor 'localhost' could be looked up with ./bin/resolveip Please configure the 'hostname' command to return a correct hostname. If you want to solve this at a later stage, restart this script with the --force option Elnora:/usr/local/mysql Jacopo$ Sono stato parecchio prolisso lo ammetto, ma dall'esperienza fatta in precedenti forum ho capito che devo spiegare in modo più lato e chiaro possibile le problematiche per riuscire a trovare una soluzione! Grazie in anticipo a chi potrà aiutarmi http://www.myspace.com/jacopoelnora Link al commento Condividi su altri siti Altre opzioni di condivisione...
lele Inviato 5 Ottobre 2007 Segnala Condividi Inviato 5 Ottobre 2007 io ho sempre scaricato mysql dal sito mysql.com http://dev.mysql.com/downloads/mysql/5.1.html qui c'è una pagina di info per l'insta su osx http://dev.mysql.com/doc/refman/5.0/en/mac-os-x-installation.html l'ho installato poche volte e tutte le volte che lo faccio non ricordo più i passi che avevo fatto la volta precedente, ma non ricordo di aver mai lanciato uno script come indicato al punto 4 da te sopra. Chi è lei? Il numero 2. Chi è il numero 1? Lei è il numero 6. Link al commento Condividi su altri siti Altre opzioni di condivisione...
Elnora Inviato 5 Ottobre 2007 Autore Segnala Condividi Inviato 5 Ottobre 2007 Innanzitutto grazie per la risposta, ho provato a scaricare la versione 5.1 in tutti e 4 i formati, ma tutti mi danno la stessa finestra: http://www.jac87.altervista.org/cartella.html Insomma non c'è nessun installer o applicazione che possa installare, o sbaglio? http://www.myspace.com/jacopoelnora Link al commento Condividi su altri siti Altre opzioni di condivisione...
lele Inviato 5 Ottobre 2007 Segnala Condividi Inviato 5 Ottobre 2007 allora credo che la questione sia che la 5.1 per OSX al momento è presente solo nella forma di file tar, quindi per installarlo le istruzioni dovrebbero essere in questa pagina http://www.mysql.org/doc/refman/5.1/en/installing-binary.html La 5.0 invece è anche presente nella forma di pkg, con la quale puoi utilizzare le istruzioni che ti avevo girato prima (http://www.mysql.org/doc/refman/5.0/en/mac-os-x-installation.html). In effetti ti avevo girato il link al download della 5.1 e la pagina delle istruzioni della 5.0... buona fortuna Chi è lei? Il numero 2. Chi è il numero 1? Lei è il numero 6. Link al commento Condividi su altri siti Altre opzioni di condivisione...
Messaggi raccomandati
Archiviato
Questa discussione è archiviata e chiusa a future risposte.