banner



How To Start Mysql Server Windows

To employ Media Server with a MySQL database, you must download and install a MySQL server and ODBC driver, and configure Media Server to connect to the database through the driver.

  • Download and install a MySQL server and MySQL Connector/ODBC (which contains the Unicode driver). During installation, set up up a user account with superuser privileges. For instructions, refer to the MySQL documentation on world wide web.mysql.com.

    NOTE:

    Once installed, the MySQL server appears in the Services tab in Windows Job Managing director.

  • Configure the database server for use with Media Server:

    1. Open the configuration or options file for the MySQL server (usually named my.ini).
    2. So that Media Server can send large amounts of binary data (images) to the database, prepare the configuration parameter max_allowed_packet=1073741824 .
    3. Salve and close the configuration file.
  • Add together the MySQL bin directory path to the PATH environmental variable.

    NOTE:

    This step enables you lot to utilise the control mysql to start the mysql command-line tool from the Windows Command Prompt. If the directory path is not added to the PATH variable, y'all must specify the mysql.exe file path in the Command Prompt to kickoff psql.

  • Open up the mysql command line tool:

    1. In the Windows Control Prompt, run the command:

      mysql -u                userName                -p
    2. Enter your password when prompted.
  • Run a CREATE DATABASE command to create a new database. Specify the following database settings.

    Database name Any name.
    Character set Must be Unicode–either UTF8 or UCS2.
    Collation Whatever that is compatible with the encoding.

    For instance:

    CREATE DATABASE myDatabase Character SET utf8 COLLATE utf8_unicode_ci;
  • Run the my.sql script provided in the Media Server installation directory. This script sets up the database schema that Media Server requires.

    1. Close the mysql control-line tool:

      quit
    2. In the Windows Command Prompt, run the following command:

      mysql -u                userName                -p -5 -D                databaseName                -e "source                path/my.sql"

      where,

      userName is the MySQL user proper noun.
      databaseName is the name of the database you created in Step 2.
      path is the path to the my.sql file.

      Notation:

      Running the script not-interactively from the last ensures that the script terminates if an error occurs.

    3. Enter your password when prompted.
  • Grant privileges to the user that Media Server volition connect as. Required privileges are:

    Database Create Temporary Tables
    All tables Select, Insert, Update, Delete
    All functions and stored procedures Execute

    If security is non a consideration, grant all privileges.

    1. Get-go the mysql command-line tool:

      mysql
    2. Run the GRANT commands:

      GRANT CREATE TEMPORARY TABLES ON                databaseName.* TO                userName; GRANT SELECT, INSERT, UPDATE, DELETE ON                databaseName.* TO                userName; GRANT EXECUTE ON                databaseName.* TO                userName;

      where,

      databaseName is the name of the database you created in Step 2.
      userName is the user proper noun that Media Server will connect equally.
    3. Close the mysql control-line tool:

      quit
  • Open the Data Sources (ODBC) program:

    1. In the Windows Control Panel, click System and Security.

      The System and Security window opens.

    2. Click Administrative Tools.

      The Authoritative Tools window opens.

    3. Double-click Data Sources (ODBC).

      The ODBC Data Source Administrator dialog box opens.

  • In the User DSN tab, click Add... .

    The Create New Data Source dialog box opens.

  • Select the MySQL ODBC Unicode commuter from the list and click Finish.

    The MySQL Connector/ODBC Data Source Configuration dialog box opens.

  • Complete the Connectedness Parameters fields:

    Data Source Name The information source proper name (DSN). Choose any string. Media Server can utilize this string to connect to the database server.
    Description

    An optional clarification for the data source.

    TCP/IP Server

    The IP address or hostname of the server that the database server is installed on.

    Port The port to use to communicate with the database server.
    User The user proper noun to connect to the database server with.
    Password The password for the user business relationship that connects to the database server.
    Database The proper name of the database that you created in Step 2.
  • Click Test to test the connection.

    The Connection Test box opens containing a message describing whether the connection was successful. If the connection failed, employ the information in the bulletin to resolve any issues.

  • Click OK to close the Connexion Examination box.

  • In the MySQL Connector/ODBC Data Source Configuration dialog box, click OK to close the dialog box.

  • In the ODBC Data Source Administrator dialog box, click OK to shut the dialog box.

  • You can now configure Media Server to connect to the database (see Configure Media Server).
  • Source: https://www.microfocus.com/documentation/idol/IDOL_12_0/MediaServer/Guides/html/English/Content/Getting_Started/Configure/_TRN_Set_up_MySQL.htm

    Posted by: stewartowereve.blogspot.com

    0 Response to "How To Start Mysql Server Windows"

    Post a Comment

    Iklan Atas Artikel

    Iklan Tengah Artikel 1

    Iklan Tengah Artikel 2

    Iklan Bawah Artikel