remote login through admin
Use command line parameters with Remote Desktop Connection To start Remote Desktop from the Run dialog box, follow these steps: Click the Start button Picture of the Start button, click All Programs, click Accessories, and then click Run. In the Open box, type mstsc. Type a space, followed by any additional parameters that you want … Read more
Insert Data From a Form Into a Database
Now we will create an HTML form that can be used to add new records to the “Persons” table. Here is the HTML form: <html> <body> <form action=”insert.php” method=”post”> Firstname: <input type=”text” name=”firstname”> Lastname: <input type=”text” name=”lastname”> Age: <input type=”text” name=”age”> <input type=”submit”> </form> </body> </html> When a user clicks the submit button in the … Read more
SQL FOREIGN KEY Constraint
CREATE TABLE product ( category INT NOT NULL, id INT NOT NULL, price DECIMAL, PRIMARY KEY(category, id) ) ENGINE=INNODB; CREATE TABLE customer ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=INNODB; CREATE TABLE product_order ( no INT NOT NULL AUTO_INCREMENT, product_category INT NOT NULL, product_id INT NOT NULL, customer_id INT NOT NULL, PRIMARY KEY(no), … Read more
Creating a table with auto_increment
CREATE TABLE example_autoincrement ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, data VARCHAR(100) ); CREATE TABLE example_innodb ( id INT, data VARCHAR(100) ) TYPE=innodb;
mount Windows share on Centos 6 or Redhat RHEL
Share one folder name Software on Windows (192.168.0.100) with username test 2. On Centos , mount that share folder to mnt folder on Server [root@localhost ~]# mount -t cifs -o username=test,password=Passw0rd //192.168. 0.100/Software /mnt 3. Now we can use that folder as our local disk [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted … Read more