Since im get used to IDR (indonesian rupiah) currency im forgot to set the price field to become a FLOAT type.. some users like Rocco (italy) and Razza (spain) asked me about that .. so here’s a quick

from terminal :
$mysql -u easyhotspot -p
[password] = easyhotspot

use easyhotspot;
ALTER TABLE billingplan CHANGE price price FLOAT( 11 ) NOT NULL;
ALTER TABLE postplan CHANGE price price FLOAT( 11 ) NOT NULL;

describe billingplan;

describe postplan;
exit;

pheew .. theres anoter bugs solved, thx to you all guys ..

like this :

mysql> use easyhotspot;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> ALTER TABLE billingplan CHANGE price price FLOAT( 11 ) NOT NULL;
Query OK, 2 rows affected (0.06 sec)
Records: 2 Duplicates: 0 Warnings: 0

mysql> ALTER TABLE postplan CHANGE price price FLOAT( 11 ) NOT NULL;
Query OK, 2 rows affected (0.00 sec)
Records: 2 Duplicates: 0 Warnings: 0

mysql>
mysql> describe billingplan;
+--------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(255) | NO | UNI | NULL | |
| type | varchar(255) | NO | | NULL | |
| amount | int(255) | NO | | NULL | |
| price | float | NO | | NULL | |
| IdleTimeout | int(255) | NO | | NULL | |
| simultaneous | int(10) | NO | | NULL | |
| redirect_url | varchar(255) | NO | | NULL | |
| bw_upload | int(255) | NO | | NULL | |
| bw_download | int(255) | NO | | NULL | |
| created_by | varchar(255) | NO | | NULL | |
+--------------+--------------+------+-----+---------+----------------+
11 rows in set (0.00 sec)

mysql>
mysql> describe postplan;
+-------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+-------+
| id | int(255) | NO | PRI | NULL | |
| name | varchar(255) | NO | | NULL | |
| price | float | NO | | NULL | |
+-------+--------------+------+-----+---------+-------+
3 rows in set (0.00 sec)

mysql>

4 Comments

  1. I’m sorry to say but that didn’t work for me.

    mysql> use easyhotspot;
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A

    Database changed
    mysql> ALTER TABLE ‘billingplan’ CHANGE ‘price’ ‘price’ FLOAT( 11 ) NOT NULL;
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘��billingplan’ CHANGE ‘price’ ‘price’ FLOAT( 11 ) NOT NULL’ at line 1
    mysql> ALTER TABLE ‘postplan’ CHANGE ‘price’ ‘price’ FLOAT( 11 ) NOT NULL;
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘��postplan’ CHANGE ‘price’ ‘price’ FLOAT( 11 ) NOT NULL’ at line 1
    mysql> exit;

  2. try to take out the ” ‘ “

  3. as you can tell i know nothing about mysql. sorry about that.

    Thanks

  4. mas tolongin nih
    klo easyhotport ditambahin transparant proxy kira 2 bermasalah tidak di ip table nat atau masquerid nya?


Post a Comment

*
*