Vous êtes sur la page 1sur 16

Creative assets management

MySQL
Install Guide
Contact
Extensis Celartem, Inc.
1800 SW First Avenue, Email: sales_ap@celartem.com
Suite 500 http://www.celartem.com/jp/
Portland, OR 97201
Toll Free: (800) 796-9798 Press Contact
Phone: (503) 274-2020 Phone: (503) 274-2020 x129
Fax: (503) 274-0530 Email: press@extensis.com
http://www.extensis.com
Customer Service
Extensis Europe
Web/email: http://www.extensis.com/customerservice/
First Floor, Century House Phone: (800) 796-9798
The Lakes
Northampton NN4 7SJ Technical Support
United Kingdom
Phone: +44(0)1604 636 300 Web/email: http://www.extensis.com/support/
Fax +44 (0)1604 636 366
info@extensis.co.uk
Documentation Feedback
Web/email: http://www.extensis.com/helpfeedback/

© 2006 Extensis, a division of Celartem, Inc. This document and the code for such components are specified in the copyright notice file,
software described in it are copyrighted with all rights reserved. This LICENSES.TXT delivered with this product. Please refer to these
document or the software described may not be copied, in whole or part, licenses for information regarding use of these software components.
without the written consent of Extensis, except in the normal use of the
software, or to make a backup copy of the software. This exception does Extensis warrants the disks on which the software is recorded to be free
not allow copies to be made for others. Licensed under U.S. patents issued from defects in materials and faulty workmanship under normal use for
and pending. a period of thirty (30) days from the original date of purchase. If you
purchased this product directly from Extensis, and if a defect occurs
Extensis is a registered trademark of Extensis. The Extensis logo, Extensis during the 30-day period, you may return the disks to Extensis for a free
Library, Font Reserve, Font Reserve Server, Font Vault, and Font Sense, replacement. All products submitted for replacement must be registered
Portfolio, Portfolio Server, Portfolio NetPublish, NetPublish, Suitcase with Extensis before replacement. Extensis products purchased from
and Suitcase Server are all trademarks of Extensis. Celartem, Celartem, resellers are warranted by the reseller and are covered by the reseller’s
Inc., the Celartem logo, PixelLive and PixelSafe are trademarks of return policy. This warranty is limited to replacement and shall not
Celartem, Inc. Adobe, Acrobat, Illustrator, Photoshop, and PostScript encompass any other damages, including but not limited to loss of profit,
are trademarks of Adobe Systems, Incorporated. Apple, AppleScript, and special, incidental, or other similar claims. This software is provided
Bonjour, FontSync, Macintosh, Mac OS 9, Mac OS X, PowerPC, on an “as is” basis. Except for the express warranty set forth above,
and QuickDraw are registered trademarks of Apple Computer, Inc. Extensis makes no other warranties, either explicit or implied, regarding
Microsoft, Internet Explorer, Windows, Windows XP, Windows 2000, the enclosed software’s quality, performance, merchantability, or fitness
Windows NT, Windows ME and Windows 98 are registered trademarks for a particular purpose.
of Microsoft Corporation. Intel is a registered trademark of Intel.
All other trademarks are the property of their respective owners.

Portions of this product use software components developed through


various open source projects. The licenses and availability of source
Portfolio SQL Connect User Guide


Installing MySQL on Mac OS X


This installation procedure is detailed, and as
Adobe Version Cue uses a version of MySQL. To
of this writing, necessary to properly install
provide a clean installation, disable Version Cue
MySQL 4.1.20, MyODBC 3.51.12 and create your before proceeding with the installation.
SQL catalog. Due to the nature of open source
software, this procedure may be simplified in the
future as upgrades are implemented to installers • For Mac OS X 10.4 (Tiger) Server, the default
and the source code. installation of MySQL is in a unique location, and will
not interfere with your new installation. Unless you
These installation instructions assume that you are have previously installed a new version of MySQL, you
running Mac OS X 10.4 Server (Tiger) or later. can go on to install MySQL.

• For all other versions of Mac OS X, use the


For the most current MySQL setup and
installation instructions please visit:
procedure below to manually ensure that there aren’t
http://www.extensis.com/downloads/ any previous versions of MySQL installed.

To manually check if MySQL is installed:


Install Portfolio 1. Launch the Terminal.
Before you install the MySQL database engine, you 2. Type cd/usr/local
need to first install Portfolio Client, Server and SQL
Connect. SQL Connect is automatically installed 3. Type ls
when you install Portfolio Server. Installers can be
found on your product CD, or downloaded directly 4. If you see any references to MySQL, you have a
from the Extensis website http://www.extensis.com. previous version of MySQL installed. Use the script
from the following website to remove the installation:
To install on an Intel based Macintosh, you will http://www.entropy.ch/software/macosx/mysql/remove-old-
also need the Extensis custom ODBC driver. Use the mysql.html
contact information on your service agreement to
contact your priority support representative for this If desired, you can also use the manual method below
driver. to remove the previous install.

To manually remove a MySQL installation:


Remove any previous MySQL installation
1. Launch the Terminal.
Based on your version of Mac OS X, you may need
to remove a previous installation of MySQL. 2. Type sudo rm -rf /usr/local/mysql*
Mac OS X Server comes with MySQL automatically
installed. 3. At the prompt, enter your administrator password.
User Guide MySQL Installation and Setup


Install MySQL [mysqld]


default-character-set=utf8
1. Download the MySQL installer from
http://dev.mysql.com/downloads/ [client]
default-character-set=utf8
Portfolio SQL Connect 8 has been fully tested
with MySQL versions 4.1.12 and 4.1.13. Use
newer versions of MySQL at your own risk.

2. Double-click downloaded file to mount the disk


image.

3. To install MySQL, double-click the installer package.


Follow the installer instructions to complete the
installation.

4. When the MySQL installation is complete, double-


click MySQLStartupItem.pkg installer package to
install it as well.

Configure the database server


If the /etc/my.cnf file is not empty, but has some
1. Log in to Mac OS X as any user with Admin privileges. configuration settings already specified, just
look for the sections [mysqld] and [client] and
2. Launch the Terminal utility from the add the default-character-set=utf8 option to
/Applications/Utilities folder. each section if not already present.

3. At the $ prompt, enter the following command to 6. Press Ctrl-X to exit Pico. At the prompt, press Y to
edit the my.cnf file: save your changes to the file.

sudo pico /etc/my.cnf

4. At the Password prompt, enter your user password.


The password must be an Admin level password.

5. When Pico launches, you are presented with an


empty file. Add the following lines to the file:
Portfolio SQL Connect User Guide


Starting the MySQL Server 5. Create the database with the following command.
Replace <databasename> with an alphanumeric
Every time you restart the computer, you must
database name.
restart the MySQL database server.
create database <databasename>;

1. Launch the Terminal application, Remember to end all MySQL commands with a
semicolon (;).
if is not already open.

2. Use the following command to start the


MySQL server: Database names can be 31 characters long, and
names can only use alphanumeric characters.
sudo /Library/StartupItems/MySQLCOM/ Do not use underscores “_” or any other
MySQLCOM start characters in database names. While names are
not case sensitive, it is best to keep the name all
in one case, upper or lower.
If prompted, enter your user password. The password
must be an Admin level password. 6. At the mysql> prompt type the following
Connecting to the server and commands. Substitute dbname with your
creating a database database name and dbpassword with a
password of your choice. Press Return after the
You must create an initial database for MySQL to semi-colon at the end of each command:
serve. Use the following procedure to create and
serve databases as needed. GRANT ALL PRIVILEGES ON dbname.* TO
‘portsql’@’localhost’ IDENTIFIED BY
1. Log in to Mac OS X as any user with Admin privileges. ‘dbpassword’ WITH GRANT OPTION;

2. Launch the Terminal utility from the This returns the following:
Hard Disk/Applications/Utilities folder. Query OK, 0 rows affected (0.00sec)
MySQL>
4. Launch the MySQL client with the following
command:

sudo /usr/local/mysql/bin/mysql -u root

At the Password prompt, enter your user password.


The password must be an Admin level password.

This launches the MySQL client.


You should see a mysql> prompt.
User Guide MySQL Installation and Setup


Now, enter the next command: 9. Enter the following command to stop the
MySQL client:
GRANT ALL PRIVILEGES ON dbname.* TO
‘portsql’@’%’ IDENTIFIED BY ‘dbpassword’ quit;
WITH GRANT OPTION;
10. It is now safe to close the Terminal window.
This returns the following:
Query OK, 0 rows affected (0.00sec) Install MyODBC
MySQL> The Connector/MyODBC driver allows SQL Connect
This creates a new user named portsql and gives to communicate with the MySQL database.
them full privileges to your database.
The Connector/MyODBC driver must be installed
Now, enter the final command: on the server that will run Portfolio Server.

FLUSH PRIVILEGES;

This tells the server to reload the grant privileges. To install Connector/MyODBC on Intel-based systems:
7. When finished creating the database, enter the 1. For Intel-based systems, request the most current
following command to stop the MySQL client: MyODBC driver from your Extensis Priority Support
representative. Use the contact information found
quit; on your Annual Service Agreement (ASA) to contact
your representative. Place a copy of this driver on
8. To test the new user and connection
your server.
to the database, enter the following
command in the Terminal window:
SQL Connect 8 for Mac OS X 10.4 (Tiger) Server
has been fully tested with 3.51.12 on PowerPC-
/usr/local/mysql/bin/mysql -u portsql -p based systems and the custom Extensis MyODBC
driver on Intel-based systems. Use newer versions
of MyODBC at your own risk.

2. Launch the Terminal.

3. Type
cd/<location of custom Extensis
Connector>

4. Type copy libmyodbc3.dylib /usr/lib

Enter the password for the portsql user that you If this command fails, type the following command:
created in the previous step. sudo cp libmyodbc3.dylib /usr/lib

If the MySQL monitor launches and you see the


mysql> prompt, you have successfully connected to
the server with the new user.
Portfolio SQL Connect User Guide


5. To confirm that everyone has permission to execute Create the DSN file
the driver, enter the following command:
1. Launch the ODBC Administrator utility from the
sudo chmod 755 /usr/lib/libmyodbc3.dylib
Hard Disk/Applications/Utilities folder.
6. Launch the ODBC Administrator utility from the
2. Click the lock icon in the lower-left hand corner of
Hard Disk/Applications/Utilities folder.
the ODBC Administrator window and enter your
7. From the Drivers tab, select the current MySQL driver Mac OS X username and password when prompted.
and click Remove.
3. From the User DSN tab, click Add, select the ODBC
8. Click Add. driver name and click OK.

9. In the Add dialog box, enter the new driver 4. In the Data Source Name (DSN) field, enter
description of “MySQL” (minus the quote marks). This a name for your new DSN. This will be the
description must be entered precisely or the driver name of your Portfolio catalog. Underscores
will not function properly. and spaces are not allowed in the DSN name.
You may also enter a description if desired.
10. Click Choose and select the new driver,
or type in the location of the new driver: 5. Click the Add button four times to add four
/usr/lib/libmyodbc3.dylib new keywords.

11. Click OK and then click Apply. 6. Double-click each Keyword and Value and edit them
to match the following values. Use the database
12. The ODBC Administrator utility can sometimes fail name that your created earlier in the setup process,
to save your settings. and the password value for the portsql user.
To ensure that the settings are saved, close the
Keyword Value
ODBC Administrator utility, and then relaunch it. If
the settings were not saved, return to step 5 of this SERVER localhost
procedure. USER portsql

To install the Connector / MyODBC on DATABASE <yourdatabasename>


PowerPC- based systems: PASSWORD <portsqlpassword>
1. Download the Connector / MyODBC version 3.51.12
installer from the MySQL website: Various versions of the MyODBC installer can
http://dev.mysql.com/downloads/ create default keywords that can interfere with
the correct operation of SQL Connect. If by
default there are additional keywords in the
2. Double click the installer package and follow the DSN, remove those keywords.
instructions.
User Guide MySQL Installation and Setup


The MySQL Administrator application


For convenience, and easy maintenance, you may
wish to use the MySQL Administrator application.
This application provides a graphical interface
for many common tasks that you would typically
accomplish via the command line. This application
is useful for creating databases, checking table
structure, assigning users as well as backing up and
restoring.
7. Click OK to save the DSN and associated keywords.
Download the most current Administrator
8. Click Apply to apply the newly created DSN and application from the following location:
ODBC settings. http://dev.mysql.com/downloads/administrator/

If you intend to serve multiple Portfolio catalogs,


you must create a DSN with a unique name for each
catalog.

9. Close the ODBC Administrator.

Adding the server and


serving the catalog
After installing MySQL, the MyODBC/Connector,
creating the database and the DSN, you are ready
to connect to your catalog from the Portfolio
Client. Please see the Portfolio Server User Guide for
complete instructions about how to connect to a
Portfolio Server and serve an MySQL catalog.
Portfolio SQL Connect User Guide


Installing MySQL on Windows


Installing MySQL on Windows is a process of 4. Choose the Typical option as the setup type and
installing the MySQL database server, MyODBC, click Next.
creating a database, creating a DSN and then
installing SQL Connect. Use the following
procedures to correctly configure MySQL to work
with Portfolio on Windows.

Install the MySQL Database Server


These instructions are for version 4.1.12 and 4.1.13.
SQL Connect 8 has been fully tested with MySQL
versions 4.1.12 and 4.1.13. Use newer versions of
MySQL at your own risk.

1. Download the current version of MySQL from


http://dev.mysql.com.
5. Click Install.
The Windows Essentials (x86)
or Windows (x86) version can be used.

2. Double-click setup.exe to launch the installer.

3. At the Welcome screen of the Setup Wizard


click Next.
User Guide MySQL Installation and Setup
10

6. At this point you are prompted to create an account 8. At the Welcome screen of the MySQL Server
on the MySQL.com website. If you would like to do Instance Configuration Wizard, click Next.
so, choose the appropriate option and follow the
instructions.

Otherwise, choose the Skip Sign-up option and


click Next.

9. Choose the Detailed Configuration option and


click Next.

7. The MySQL Server Database Engine is now installed.


At this point the server must be configured, choose
the Configure the MySQL Server now option and
click Finish.
Portfolio SQL Connect User Guide
11

10. Choose the Server Machine option and click Next.

13. This step of the Wizard allows you to help


11. Choose the database usage type that best describes optimize the database for the number of concurrent
your installation. If you are unsure, choose the connections that you expect to have to a Portfolio
Multifunctional Database option and click Next. catalog.

If you are not sure how many concurrent users you


will have, choose the Online Transaction Processing
(OLTP) option and click Next.

12. Choose a location that will house the database


tablespace and click Next. If the current machine
will be used to store the Portfolio catalog, the default
location will work fine.
User Guide MySQL Installation and Setup
12

14. Choose the Enable TCP/IP Networking option and


click Next.

17. In this step you choose enable the root user and
choose a password. Check the Modify Security
15. Choose the Best Support for Multilingualism Settings option, then enter and confirm the new root
option and click Next. user password. When finished, click Next.

16. Extensis recommends running the MySQL server as


a service. To do so, check the Install as a Windows
Service option and choose a Service Name. It is
also recommended to launch the MySQL Service
automatically, choose the appropriate option and
click Next.
Portfolio SQL Connect User Guide
13

18. Click Execute to configure the MySQL instance. Install MyODBC


Use the following procedure to install and configure
MyODBC on Windows.

1. Download MySQL Connector/ODBC 3.51.11 driver


installer from http://dev.mysql.com/downloads/

These instructions are for the 3.51.11 version of the


MySQL Connector/ODBC driver. SQL Connect 8
has been fully tested with the Connector/ODBC
driver versions 3.51.11. Use newer versions at your
own risk.

2. Close any programs that you have running.

19. Click Finish to close the Wizard. 3. Double click to launch the installer.

4. At the Welcome step of the Installation Wizard,


click Next.
User Guide MySQL Installation and Setup
14

5. Accept the GNU general public license and


click Next.

8. Click Finish to close the installer.

6. Scan the ReadMe Information and click Next.

7. Click Next to install MyODBC.


Portfolio SQL Connect User Guide
15

Create the Database and DSN 8. In the Create New Data Source dialog box, click to
highlight the MySQL ODBC 3.51 driver and click
1. From the Start menu, choose Start > MySQL > Finish.
MySQL Server 4.1 > MySQL Command Line Client

2. Enter the root user password that you set in step 17 of


the MySQL database engine installation.

3. Type the following command to create a database.

create database <databasename>;

Replace <databasename> with the desired name of


your SQL database.

9. In the Connector/ODBC - Add Data Source Name


dialog box, to create the DSN, enter the following
information on the Login tab:

4. Type exit to close the command line client.

5. Choose Start > Control Panel.

6. Open Administrative Tools and double click


Data Sources.

7. In the ODBC Data Source Administrator, from the


System DSN tab, click Add.

Data Source Name — this is the Portfolio catalog


name.

Description — general description of the catalog.


User Guide MySQL Installation and Setup
16

Server — enter the IP Address of where the MySQL The MySQL Administrator application
database engine is installed.
For convenience, and easy maintenance, you may
User — enter a username that has full access rights to wish to use the MySQL Administrator application.
the MySQL database. Often the root user is specified. This application provides a graphical interface
To do so, enter root in this field. for many common tasks that you would typically
accomplish via the command line. This application
Password — enter a password for the user above.
is useful for creating databases, checking table
Database — choose the databasename that you structure, assigning users as well as backing up and
created in step 3 restoring.

10. Click Test to test the connection to the database. Download the most current Administrator
application from the following location:
After successfully connecting to the database, click
http://dev.mysql.com/downloads/administrator/
OK to accept the Connector/ODBC settings.

11. Click OK in the ODBC Data Source Administrator


dialog box.

Finish installation
After you have completed the above steps, you
can proceed to installing Portfolio Sever and SQL
Connect. For further instructions, see the Portfolio
Server User Guide.

Vous aimerez peut-être aussi