There are two parts to creating a datasource, depending upon whether this is the first time you are doing this, 
you can skip the deploying JDBC driver for the database, if you have previously already done this.

Step 1: Deploying the JDBC Driver
 
	Option 1: use the JBoss CLI tool, and deploy the "mysql-connector-java-5.1.5.jar" or later jar by issuing the command
		deploy mysql-connector-java-5.1.5.jar
		
	Option 2:(recommended)
		1) Stop the server if it is running.

		2) Overlay the "modules" directory on the "<jboss-as>/modules" directory 

		3) Then copy the mysql database JDBC driver jar file "mysql-connector-java-5.1.5.jar" into
			"<jboss-as>/modules/com/mysql/main" directory.
		4) start server

Step 2: Creating the datasource 

	Option 1: Edit the standalone-teiid.xml or domain-teiid.xml file and add contents of the "mysql.xml" 
	or "mysql-xa.xml" file under the "datasources" subsystem. You may have to edit contents according 
	to where your mysql server is located and credentials you need to use to access it.
	
	Option 2: Take a look at create-ds.cli script, and modify and execute using JBoss CLI tool as below 
	
	./Jboss-admin.sh --file create-mysql-ds.cli
	
**************************************************************************************************************	
NOTE: MySQL JDBC driver does not include the Driver file name as the service loader mechanism as of 
version 5.1.5, so as is Step 1, Option 1 will not work. However you if you can manually fix jar to include 
service definitions as described here http://community.jboss.org/docs/DOC-16657 then you can use it.
*************************************************************************************************************** 