![]() |
![]() |
![]() |
![]() |
![]() |
| Quick Start | MySQL | Document | Layouts | Searches | Browse | Sharing | ||||
![]() |
| MySQL requirements | |||
|
|
In order to work with your MySQL database, SQLTouch application requires that your MySQL database fits some requirements. They are just a few. We have added here some recommendation and given you some trick on how to create a MySQL database on your server and how to get the best performance from it. |
||
![]() |
• Create a database You can connect SQLTouch only to an existing MySQL database on your server. SQLTouch doesn't create the database for you. So if you don't have yet a database on your server you have to create it. Usually the providers grant free MySQL databases on your hosting plan. Verify your provider grants that. If so you can easily create a database using the tools your provider features to you. Usually you should login on your host and go the the control panel. Then go to the MySQL area or to the Database area and create your own database from there. You will be asked to choose a database name, an username and a password. The process will automatically create the database and usually will return you 3 usernames/passwords for each database created. If so, if you chose an username e.g. john, you will get an username/password with read-only privileges, e.g. john_r. An username with read/write privileges, e.g. john_w and an username with full privileges e.g. john himself. Each username has his own password. Therefore if you login to your database with the username john_r you will be able to read-only the records and will be not able to modify the records nor to delete nor add new records. If you login to your database with the username john_w you will be able to read, modify, delete and add new records. If you login to your database with the username john you will be able to read, modify, delete and add new records and furthermore you will be able to modify the database structure, adding and deleting tables and fields. SQLTouch doesn't grant you these options but you can quite do that with other softwares like e.g. the freeware Sequel Pro or on the web, using the myPhpAdmin web software granted by your provider. Together with the usernames, you should be shown the host address (e.g. dbserver.mydomain.com), the port number (if not specified, usually the 3306). Once you have created your own database on your server, please be sure it fits the requirements as described here below. |
||
| • Requirements • The MySQL database must exist on your server. If not, please consult the previous chapter "Create a database" • The 5 parameters you need to define on SQLTouch in order to connect to your database (host, port, username, password and database name) must concern existing objects: the host must exist, the port (usually the 3306) must be available, the user must exist and the remote MySQL database must exists too. If you don't know all of these parameters please ask your provider. • Please note that the host parameter is something different than your http web site address. • Structure • The database must contain at least one table. • Each table must contain at least one field. • Each table must contain at least one ID field. You can name this field as you like (even "ID"). This field type must be integer or long integer, with auto-increment and indexed as primary. This way SQLTouch can univoquely identify the record to edit or delete through this field. • Permissions • Be sure the user (defined by the username parameter) has enough permissions to select the tables, perform queries on the fields, add or delete records, as expected. • If you have the root permissions on your server (so this means that you are the IT guy of your company), you can even assign to each user a given set of privileges for each table and for each field. For example you can set a table as not selectable (not searchable) by the users "customer". Or you can set a field to be unmodifiable by a given user. To do that you should grant or not to grant the privileges SELECT, INSERT, UPDATE, DELETE, CREATE TEMPORARY TABLES We can't enter into these long long details here, so we invite you to consult the MySQL guidelines. |
|||
|
|
|||
SqlTouch ©2009 - All rights reserved - Web site: http://www.sqltouch.com |
|||