{"id":74657,"date":"2022-05-17T22:14:21","date_gmt":"2022-05-18T02:14:21","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/?p=74657"},"modified":"2022-05-17T22:14:23","modified_gmt":"2022-05-18T02:14:23","slug":"python-and-mysql-operations-code-examples","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=74657","title":{"rendered":"Python and MySQL Operations. Code Examples"},"content":{"rendered":"\n<p>#!\/usr\/bin\/env python# coding: utf-8<br \/># In[1]:<\/p>\n\n\n\n<p>import mysql.connector<\/p>\n\n\n\n<p># In[2]:<\/p>\n\n\n\n<p># create a database connection<\/p>\n\n\n\n<p># In[3]:<\/p>\n\n\n\n<p>import mysql.connector<br \/>mydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;)<br \/>print(mydb)<\/p>\n\n\n\n<p># In[4]:<\/p>\n\n\n\n<p>import mysql.connector<br \/>mydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;)<br \/>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;drop DATABASE mydatabase&#8221;);mycursor.execute(&#8220;CREATE DATABASE mydatabase&#8221;);<\/p>\n\n\n\n<p># In[5]:<\/p>\n\n\n\n<p># check if database exists<\/p>\n\n\n\n<p># In[6]:<\/p>\n\n\n\n<p>import mysql.connector<br \/>mydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;)<br \/>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;SHOW DATABASES&#8221;)<br \/>for x in mycursor:&nbsp; print(x)<\/p>\n\n\n\n<p># In[7]:<\/p>\n\n\n\n<p># connect to the database and see if you can connect<\/p>\n\n\n\n<p># In[8]:<\/p>\n\n\n\n<p>import mysql.connector<br \/>mydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;,&nbsp; database=&#8221;mydatabase&#8221;)<\/p>\n\n\n\n<p># In[9]:<\/p>\n\n\n\n<p># Create table<\/p>\n\n\n\n<p># In[10]:<\/p>\n\n\n\n<p>import mysql.connector<br \/>mydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;,&nbsp; database=&#8221;mydatabase&#8221;)<br \/>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;CREATE TABLE customers (name VARCHAR(255), address VARCHAR(255))&#8221;)<\/p>\n\n\n\n<p># In[11]:<\/p>\n\n\n\n<p># Check if the Table Exists<\/p>\n\n\n\n<p># In[12]:<\/p>\n\n\n\n<p>import mysql.connector<br \/>&#8221;&#8217;mydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;yourusername&#8221;,&nbsp; password=&#8221;yourpassword&#8221;,&nbsp; database=&#8221;mydatabase&#8221;)&#8221;&#8217;<br \/>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;SHOW TABLES&#8221;)<br \/>for x in mycursor:&nbsp; print(x)<\/p>\n\n\n\n<p># In[13]:<\/p>\n\n\n\n<p># Create table with primary key<\/p>\n\n\n\n<p># In[14]:<\/p>\n\n\n\n<p>mycursor.execute(&#8220;CREATE TABLE customers_p (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255), address VARCHAR(255))&#8221;)<\/p>\n\n\n\n<p># In[15]:<\/p>\n\n\n\n<p># Create primary key for an existing table<\/p>\n\n\n\n<p># In[16]:<\/p>\n\n\n\n<p>mycursor.execute(&#8220;ALTER TABLE customers ADD COLUMN id INT AUTO_INCREMENT PRIMARY KEY&#8221;)<\/p>\n\n\n\n<p># In[17]:<\/p>\n\n\n\n<p># insert into tables<\/p>\n\n\n\n<p># In[18]:<\/p>\n\n\n\n<p>sql = &#8220;INSERT INTO customers (name, address) VALUES (%s, %s)&#8221;val = (&#8220;John&#8221;, &#8220;Highway 21&#8221;)mycursor.execute(sql, val)<br \/>mydb.commit()<br \/>print(mycursor.rowcount, &#8220;record inserted.&#8221;)<\/p>\n\n\n\n<p># In[19]:<\/p>\n\n\n\n<p># insert multiple rows<\/p>\n\n\n\n<p># In[20]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;INSERT INTO customers (name, address) VALUES (%s, %s)&#8221;val = [&nbsp; (&#8216;Peter&#8217;, &#8216;Lowstreet 4&#8217;),&nbsp; (&#8216;Amy&#8217;, &#8216;Apple st 652&#8217;),&nbsp; (&#8216;Hannah&#8217;, &#8216;Mountain 21&#8217;),&nbsp; (&#8216;Michael&#8217;, &#8216;Valley 345&#8217;),&nbsp; (&#8216;Sandy&#8217;, &#8216;Ocean blvd 2&#8217;),&nbsp; (&#8216;Betty&#8217;, &#8216;Green Grass 1&#8217;),&nbsp; (&#8216;Richard&#8217;, &#8216;Sky st 331&#8217;),&nbsp; (&#8216;Susan&#8217;, &#8216;One way 98&#8217;),&nbsp; (&#8216;Vicky&#8217;, &#8216;Yellow Garden 2&#8217;),&nbsp; (&#8216;Ben&#8217;, &#8216;Park Lane 38&#8217;),&nbsp; (&#8216;William&#8217;, &#8216;Central st 954&#8217;),&nbsp; (&#8216;Chuck&#8217;, &#8216;Main Road 989&#8217;),&nbsp; (&#8216;Viola&#8217;, &#8216;Sideway 1633&#8217;)]<br \/>mycursor.executemany(sql, val)<br \/>mydb.commit()<br \/>print(mycursor.rowcount, &#8220;was inserted.&#8221;)<\/p>\n\n\n\n<p># In[21]:<\/p>\n\n\n\n<p># get the inserted row id<\/p>\n\n\n\n<p># In[22]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;INSERT INTO customers (name, address) VALUES (%s, %s)&#8221;val = (&#8220;Michelle&#8221;, &#8220;Blue Village&#8221;)mycursor.execute(sql, val)<br \/>mydb.commit()<br \/>print(&#8220;1 record inserted, ID:&#8221;, mycursor.lastrowid);<\/p>\n\n\n\n<p># In[23]:<\/p>\n\n\n\n<p># Select Records<\/p>\n\n\n\n<p># In[24]:<\/p>\n\n\n\n<p>import mysql.connector<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;SELECT * FROM customers&#8221;)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[25]:<\/p>\n\n\n\n<p># select columns<\/p>\n\n\n\n<p># In[26]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;SELECT name, address FROM customers&#8221;)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[27]:<\/p>\n\n\n\n<p>#fetch only one row<\/p>\n\n\n\n<p># In[28]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;SELECT * FROM customers&#8221;)<br \/>myresult = mycursor.fetchone()<br \/>print(myresult)<\/p>\n\n\n\n<p># In[29]:<\/p>\n\n\n\n<p># use where condition<\/p>\n\n\n\n<p># In[30]:<\/p>\n\n\n\n<p>import mysql.connector<br \/>mydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;,&nbsp; database=&#8221;mydatabase&#8221;)<br \/>mycursor = mydb.cursor()<br \/>sql = &#8220;SELECT * FROM customers WHERE address =&#8217;Park Lane 38&#8242;&#8221;<br \/>mycursor.execute(sql)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[31]:<\/p>\n\n\n\n<p># Prevent SQL Injection<\/p>\n\n\n\n<p># In[32]:<\/p>\n\n\n\n<p>import mysql.connector<br \/>mydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;,&nbsp; database=&#8221;mydatabase&#8221;)<br \/>mycursor = mydb.cursor()<br \/>sql = &#8220;SELECT * FROM customers WHERE address = %s&#8221;adr = (&#8220;Yellow Garden 2&#8221;, )<br \/>mycursor.execute(sql, adr)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[33]:<\/p>\n\n\n\n<p># order by<\/p>\n\n\n\n<p># In[34]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;SELECT * FROM customers ORDER BY name&#8221;<br \/>mycursor.execute(sql)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[35]:<\/p>\n\n\n\n<p># order by desc<\/p>\n\n\n\n<p># In[36]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;SELECT * FROM customers ORDER BY name DESC&#8221;<br \/>mycursor.execute(sql)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[37]:<\/p>\n\n\n\n<p># Delete From By<\/p>\n\n\n\n<p># In[38]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;DELETE FROM customers WHERE address = &#8216;Mountain 21&#8242;&#8221;<br \/>mycursor.execute(sql)<br \/>mydb.commit()<br \/>print(mycursor.rowcount, &#8220;record(s) deleted&#8221;)<\/p>\n\n\n\n<p># In[39]:<\/p>\n\n\n\n<p># delete with SQL Injection<\/p>\n\n\n\n<p># In[40]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;DELETE FROM customers WHERE address = %s&#8221;adr = (&#8220;Yellow Garden 2&#8221;, )<br \/>mycursor.execute(sql, adr)<br \/>mydb.commit()<br \/>print(mycursor.rowcount, &#8220;record(s) deleted&#8221;)<\/p>\n\n\n\n<p># In[41]:<\/p>\n\n\n\n<p># drop tables<\/p>\n\n\n\n<p># In[42]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;DROP TABLE customers&#8221;<br \/>mycursor.execute(sql)<\/p>\n\n\n\n<p># In[43]:<\/p>\n\n\n\n<p># drop table only if exists<\/p>\n\n\n\n<p># In[44]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;DROP TABLE IF EXISTS customers&#8221;<br \/>mycursor.execute(sql)<\/p>\n\n\n\n<p># In[45]:<\/p>\n\n\n\n<p>mycursor.execute(&#8220;CREATE TABLE customers (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255), address VARCHAR(255))&#8221;)<\/p>\n\n\n\n<p># In[46]:<\/p>\n\n\n\n<p>#MySQL Update Table<\/p>\n\n\n\n<p># In[47]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;UPDATE customers SET address = &#8216;Canyon 123&#8217; WHERE address = &#8216;Valley 345&#8242;&#8221;<br \/>mycursor.execute(sql)<br \/>mydb.commit()<br \/>print(mycursor.rowcount, &#8220;record(s) affected&#8221;)<\/p>\n\n\n\n<p># In[48]:<\/p>\n\n\n\n<p># update with SQL Injection<\/p>\n\n\n\n<p># In[49]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>sql = &#8220;UPDATE customers SET address = %s WHERE address = %s&#8221;val = (&#8220;Valley 345&#8221;, &#8220;Canyon 123&#8221;)<br \/>mycursor.execute(sql, val)<br \/>mydb.commit()<br \/>print(mycursor.rowcount, &#8220;record(s) affected&#8221;)<\/p>\n\n\n\n<p># In[50]:<\/p>\n\n\n\n<p># limit results<\/p>\n\n\n\n<p># In[51]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;SELECT * FROM customers LIMIT 5&#8221;)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[52]:<\/p>\n\n\n\n<p># Limit from a different position<\/p>\n\n\n\n<p># In[53]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;SELECT * FROM customers LIMIT 5 OFFSET 2&#8221;)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[54]:<\/p>\n\n\n\n<p># create table users<\/p>\n\n\n\n<p># In[55]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()<br \/>mycursor.execute(&#8220;CREATE TABLE products (id varchar(100), name VARCHAR(255), address VARCHAR(255))&#8221;)<\/p>\n\n\n\n<p># In[56]:<\/p>\n\n\n\n<p>mycursor = mydb.cursor()mycursor.execute(&#8220;CREATE TABLE users (id varchar(100), name VARCHAR(255), fav VARCHAR(255))&#8221;)<\/p>\n\n\n\n<p># In[57]:<\/p>\n\n\n\n<p># insert into users<\/p>\n\n\n\n<p># In[58]:<\/p>\n\n\n\n<p>sql = &#8220;INSERT INTO users (id, name, fav) VALUES (%s, %s, %s)&#8221;val = [&nbsp; (&#8216;1&#8217;, &#8216;John&#8217;, &#8216;4&#8217;),&nbsp; (&#8216;2&#8217;, &#8216;Apple&#8217;, &#8217;55&#8217;)&nbsp; &nbsp; &nbsp; ]<\/p>\n\n\n\n<p># In[59]:<\/p>\n\n\n\n<p>sql = &#8220;INSERT INTO products (id, name) VALUES (%s, %s)&#8221;val = [&nbsp; (&#8216;4&#8217;, &#8216;chocolate&#8217;),&nbsp; (&#8216;5&#8217;, &#8216;Milk&#8217;)&nbsp; &nbsp; ]<\/p>\n\n\n\n<p># In[60]:<\/p>\n\n\n\n<p>sql = &#8220;SELECT &nbsp; users.name AS user, &nbsp; products.name AS favorite &nbsp; FROM users &nbsp; INNER JOIN products ON users.fav = products.id&#8221;<br \/>mycursor.execute(sql)<br \/>myresult = mycursor.fetchall()<br \/>for x in myresult:&nbsp; print(x)<\/p>\n\n\n\n<p># In[ ]:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Ref: W3Schools.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/usr\/bin\/env python# coding: utf-8# In[1]: import mysql.connector # In[2]: # create a database connection # In[3]: import mysql.connectormydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;)print(mydb) # In[4]: import mysql.connectormydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;)mycursor = mydb.cursor()mycursor.execute(&#8220;drop DATABASE mydatabase&#8221;);mycursor.execute(&#8220;CREATE DATABASE mydatabase&#8221;); # In[5]: # check if database exists # In[6]: import mysql.connectormydb = mysql.connector.connect(&nbsp; host=&#8221;localhost&#8221;,&nbsp; user=&#8221;root&#8221;,&nbsp; password=&#8221;&#8221;)mycursor = &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=74657\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1428],"tags":[],"class_list":["post-74657","post","type-post","status-publish","format-standard","hentry","category-python","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":74659,"url":"http:\/\/bangla.sitestree.com\/?p=74659","url_meta":{"origin":74657,"position":0},"title":"Python and MongoDB Operations. Code Example","author":"Sayed","date":"May 17, 2022","format":false,"excerpt":"#!\/usr\/bin\/env python# coding: utf-8# In[63]: import pymongo; # In[64]: import pymongomyclient = pymongo.MongoClient(\"mongodb:\/\/localhost:27017\/\")mydb = myclient[\"mydatabase\"] # In[65]: # Check if database exist # In[66]: print(myclient.list_database_names()) # In[67]: dblist = myclient.list_database_names()if \"mydatabase\" in dblist:\u00a0 print(\"The database exists.\") # In[68]: # Create a collection # In[69]: import pymongomyclient = pymongo.MongoClient(\"mongodb:\/\/localhost:27017\/\")mydb = myclient[\"mydatabase\"]mycol\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"http:\/\/bangla.sitestree.com\/?cat=1428"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7003,"url":"http:\/\/bangla.sitestree.com\/?p=7003","url_meta":{"origin":74657,"position":1},"title":"MongoDB Java","author":"Author-Check- Article-or-Video","date":"March 16, 2015","format":false,"excerpt":"Done By Raju(DU) MongoDB Java Installation \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf\u0983 Java program \u098f MongoDB \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be\u09b0 \u09aa\u09c2\u09b0\u09cd\u09ac\u09c7 \u0986\u09ae\u09be\u09a6\u09c7\u09b0\u0995\u09c7 \u09a8\u09bf\u09b6\u09cd\u099a\u09bf\u09a4 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09af\u09c7 MongoDB JDBC Driver \u098f\u09ac\u0982 Java \u0986\u09ae\u09be\u09a6\u09c7\u09b0 machine \u098f \u09aa\u09c2\u09b0\u09cd\u09ac\u09c7 \u09a5\u09c7\u0995\u09c7\u0987 \u09b0\u09df\u09c7\u099b\u09c7\u0964 \u0986\u09aa\u09a8\u09bf \u0986\u09b0\u0993 Java tutorial \u09a6\u09c7\u0996\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7\u09a8 \u0986\u09aa\u09a8\u09be\u09b0 machine \u098f Java installation \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af\u0964 \u098f\u0996\u09a8 \u09a6\u09c7\u0996\u09ac\u09c7 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 MongoDB JDBC driver \u099f\u09bf\u2026","rel":"","context":"In &quot;\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB&quot;","block_context":{"text":"\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB","link":"http:\/\/bangla.sitestree.com\/?cat=222"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69091,"url":"http:\/\/bangla.sitestree.com\/?p=69091","url_meta":{"origin":74657,"position":2},"title":"MySql Administration SQL Commands #5","author":"Author-Check- Article-or-Video","date":"August 12, 2021","format":false,"excerpt":"Using MySQL, AdministrationWorkshop RequirementsYou should have access to the MySQL command line client software.Various different PRIVILEGES on the MySQL ServerIntroductionIn the other MySQL Virtual Workshops we have used commands that are pretty much applicable to anyone. This part of the MySQL series is aimed at giving a rudimentary understanding of\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9115,"url":"http:\/\/bangla.sitestree.com\/?p=9115","url_meta":{"origin":74657,"position":3},"title":"\u0985\u09cd\u09af\u09be\u09aa \u098f\u09ae \u098f\u09b2 \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf (AppML PHP)","author":"Author-Check- Article-or-Video","date":"May 29, 2015","format":false,"excerpt":"\u09b0\u09bf\u09a6\u0993\u09df\u09be\u09a8 \u09ac\u09bf\u09a8 \u09b6\u09be\u09ae\u09c0\u09ae \u00a0 \u09af\u09a6\u09bf \u0995\u09cb\u09a8\u0993 \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09a1\u09be\u099f\u09be\u09ac\u09c7\u09b8\u09c7 \u09aa\u09cd\u09b0\u09ac\u09c7\u09b6\u09af\u09cb\u0997\u09cd\u09af\u09a4\u09be \u09a5\u09be\u0995\u09c7 \u09a4\u09be\u09b9\u09b2\u09c7 \u09a4\u09be\u09b9\u09b2\u09c7 \u09a8\u09bf\u099a\u09c7\u09b0 \u09a8\u09bf\u09b0\u09cd\u09a6\u09c7\u09b6 \u09ae\u09cb\u09a4\u09be\u09ac\u09c7\u0995 \u0985\u09cd\u09af\u09be\u09aa \u098f\u09ae \u098f\u09b2 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u098f\u09aa\u09cd\u09b2\u09bf\u0995\u09c7\u09b6\u09a8 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09b8\u09ae\u09cd\u09ad\u09ac \u09b9\u09ac\u09c7\u0964 \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09a1\u09be\u099f\u09be\u09ac\u09c7\u09b8\u09c7 \u09aa\u09cd\u09b0\u09ac\u09c7\u09b6\u09af\u09cb\u0997\u09cd\u09af\u09a4\u09be \u09a8\u09be \u09a5\u09be\u0995\u09b2\u09c7 \u0993\u09df\u09c7\u09ac\u09ae\u09cd\u09af\u09be\u099f\u09cd\u09b0\u09bf\u0995\u09cd\u09b8\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u09aa\u09cd\u09b0\u09af\u09cb\u099c\u09cd\u09af \u0989\u09aa\u09a6\u09c7\u09b6 \u09a6\u09c7\u0996\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964 \u00a0 \u099f\u09c7\u09b8\u09cd\u099f \u09aa\u09c7\u099c \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u099f\u09c7\u09b8\u09cd\u099f \u09aa\u09c7\u099c \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09c7 customers.htm \u09b0\u09c2\u09aa\u09c7 (\u09ac\u09be \u0985\u09a8\u09cd\u09af\u0995\u09cb\u09a8\u0993 \u09b0\u09c2\u09aa\u09c7) \u09aa\u09bf\u098f\u0987\u09aa\u09bf\u2026","rel":"","context":"In &quot;AppML : Application Modeling Language&quot;","block_context":{"text":"AppML : Application Modeling Language","link":"http:\/\/bangla.sitestree.com\/?cat=796"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9118,"url":"http:\/\/bangla.sitestree.com\/?p=9118","url_meta":{"origin":74657,"position":4},"title":"\u0985\u09cd\u09af\u09be\u09aa \u098f\u09ae \u098f\u09b2 \u09a1\u099f \u09a8\u09c7\u099f (AppML .NET)","author":"Author-Check- Article-or-Video","date":"May 29, 2015","format":false,"excerpt":"\u09b0\u09bf\u09a6\u0993\u09df\u09be\u09a8 \u09ac\u09bf\u09a8 \u09b6\u09be\u09ae\u09c0\u09ae \u00a0 \u09a1\u099f \u09a8\u09c7\u099f \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0\u09c7 \u09aa\u09cd\u09b0\u09ac\u09c7\u09b6\u09af\u09cb\u0997\u09cd\u09af\u09a4\u09be \u09a5\u09be\u0995\u09b2\u09c7 \u09a8\u09bf\u099a\u09c7\u09b0 \u09aa\u09cd\u09b0\u0995\u09cd\u09b0\u09bf\u09df\u09be\u09df \u0985\u09cd\u09af\u09be\u09aa \u098f\u09ae \u098f\u09b2 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u098f\u09aa\u09cd\u09b2\u09bf\u0995\u09c7\u09b6\u09a8 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09af\u09be\u09ac\u09c7, \u09aa\u09cd\u09b0\u09ac\u09c7\u09b6\u09af\u09cb\u0997\u09cd\u09af\u09a4\u09be \u09a8\u09be \u09a5\u09be\u0995\u09b2\u09c7 \u0993\u09df\u09c7\u09ac\u09ae\u09cd\u09af\u09be\u099f\u09cd\u09b0\u09bf\u0995\u09cd\u09b8\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u09aa\u09cd\u09b0\u09af\u09cb\u099c\u09cd\u09af \u09aa\u09cd\u09b0\u0995\u09cd\u09b0\u09bf\u09df\u09be \u0985\u09a8\u09c1\u09b8\u09b0\u09a3 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964 \u00a0 \u099f\u09c7\u09b8\u09cd\u099f \u09aa\u09c7\u099c \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09aa\u09cd\u09b0\u09a5\u09ae\u09c7 \u099f\u09c7\u09b8\u09cd\u099f \u09aa\u09c7\u099c \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09c7 \u09b8\u09c7\u099f\u09bf\u0995\u09c7 \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0\u09c7 customers.htm \u09a8\u09be\u09ae \u09a6\u09bf\u09df\u09c7(\u09ac\u09be \u0985\u09a8\u09cd\u09af \u0995\u09cb\u09a8\u0993 \u09a8\u09be\u09ae\u0993 \u099a\u09b2\u09ac\u09c7) \u09b8\u0982\u09b0\u0995\u09cd\u09b7\u09a3\u2026","rel":"","context":"In &quot;AppML : Application Modeling Language&quot;","block_context":{"text":"AppML : Application Modeling Language","link":"http:\/\/bangla.sitestree.com\/?cat=796"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6085,"url":"http:\/\/bangla.sitestree.com\/?p=6085","url_meta":{"origin":74657,"position":5},"title":"\u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf : \u098f\u0995\u099f\u09bf \u09ae\u09be\u0987\u098f\u09b8\u0995\u09bf\u0989\u098f\u09b2 \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be (PHP Create a MySQL Database)","author":"Author-Check- Article-or-Video","date":"February 24, 2015","format":false,"excerpt":"Sheikh Mahfuzur Rahman \u00a0 \u098f\u0995\u099f\u09bf \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c \u098f\u0995 \u09ac\u09be \u09a4\u09be\u09b0\u0993 \u09ac\u09c7\u09b6\u09bf \u099f\u09c7\u09ac\u09b2 \u09a8\u09bf\u09df\u09c7 \u0997\u09a0\u09bf\u09a4\u0964 \u0995\u09cb\u09a8 MySQL \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c \u09a4\u09c8\u09b0\u09bf \u09ac\u09be \u09ae\u09c1\u0981\u099b\u09c7 \u09a6\u09bf\u09a4\u09c7 \u099a\u09be\u0987\u09b2\u09c7 \u0986\u09aa\u09a8\u09be\u09b0 \u09ac\u09bf\u09b6\u09c7\u09b7 \u09a7\u09b0\u09a3\u09c7\u09b0 \u0986\u0987\u09a8\u0997\u09a4 \u0985\u09a7\u09bf\u0995\u09be\u09b0 \u09b2\u09be\u0997\u09ac\u09c7 \u09af\u09be CREATE \u09a8\u09be\u09ae\u09c7 \u09aa\u09b0\u09bf\u099a\u09bf\u09a4\u0964 MySQLi \u098f\u09ac\u0982 PDO \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7 \u098f\u0995\u099f\u09bf \u09ae\u09be\u0987\u098f\u09b8\u0995\u09bf\u0989\u098f\u09b2 \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be CREATE DATABASE \u09b8\u09cd\u099f\u09c7\u099f\u09ae\u09c7\u09a8\u09cd\u099f \u09ae\u09be\u0987\u098f\u09b8\u0995\u09bf\u0989\u098f\u09b2-\u098f \u098f\u0995\u099f\u09bf \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09a4\u09c7 \u09ac\u09cd\u09af\u09ac\u09b9\u09c3\u09a4\u2026","rel":"","context":"In &quot;\u09aa\u09bf \u098f\u0987\u099a \u09aa\u09bf \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u0964 PHP tutorial&quot;","block_context":{"text":"\u09aa\u09bf \u098f\u0987\u099a \u09aa\u09bf \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u0964 PHP tutorial","link":"http:\/\/bangla.sitestree.com\/?cat=172"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/74657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=74657"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/74657\/revisions"}],"predecessor-version":[{"id":74658,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/74657\/revisions\/74658"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=74657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=74657"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=74657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}