BMS-HOSxP Community
HOSxP => HOSxP PCU => ข้อความที่เริ่มโดย: ismailsa ที่ มีนาคม 17, 2009, 08:57:53 AM
-
ผมได้ติดตั้ง server สำหรับ Hosxp_PCU เป็น ubuntu8.10server ลง mysql5.0.67 ตั้งค่าเสร็จแล้ว ลอง initial import ปรากฏว่าติดปัญหา get_serialnumber ลองแก้ปัญหาตามลิงค์ก้อไม่หายครับ
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=7683.0
วอนผู้รู้ช่วยเหลือหน่อยครับ
-
ลองดู
http://hosxp.net/index.php?option=com_smf&topic=6601
แต่ผมทำ server เองยังไม่เคยเจอเลยปัญหานี้
ตั้งแต่ติดตั้ง server ถ้าเจอแล้วแก้ บ่ ได้
ลองเปิด TeamViewer มาแล้วจะแก้ให้เท่าที่ได้
download
http://www.teamviewer.com/download/TeamViewer_Setup.exe
-
โหลดมาติดตั้ง เรียบร้อยแล้วครับ
http://www.teamviewer.com/download/TeamViewer_Setup.exe
ต้องทำงัยต่อ...รอความช่วยเหลืออยู่ครับ
-
หลัง 3 ทุ่มครับ msn = tepprisan_1921@hotmail.com หรือ tepprisan19012521@gmail.com
-
ข้อความโดย: บอย(ด่านมะขามเตี้ย)กาญจนบุรี
หลัง 3 ทุ่มครับ msn = tepprisan_1921@hotmail.com
คุณบอยครับพอดีว่าผมไป-กลับที่ทำงานอะครับ 8.30-16.30 น
ขอเป็นเวลาอื่นได้ไหมครับ เสาร์-อาทิตย์ หรือว่า
จันทร์-ศุกร์ 16.30-19.30 นก้อได้ครับ(แต่ไม่ได้อยู่โอทีนะครับ)
ทำเพราะความสุขของแอดมิน
-
ตอนนี้ on msn อยู่
-
ไม่ทราบว่าได้รึยังครับ
-
ยังแก้ปัญหา get_serialnumber ไม่ได้เลยครับ ช่วยหน่อยนะครับ
-
ลองเพิ่มตัวนี้ใน my.cnf
log_bin_trust_function_creators = 1
[mysqld]
.........
log_bin_trust_function_creators = 1
;D ;D
-
ลองใช้คำสั่งนีู้ดูนะครับ
CREATE DEFINER=`sa`@`%` FUNCTION `get_serialnumber`(param1 varchar(150)) RETURNS int(11)
begin declare serial_exist int; declare xserial_no int; if param1='' then select 'test' into param1;
end if; select count(serial_no) into serial_exist from serial where name = param1; if serial_exist = 0 then
insert into serial (name,serial_no) values (param1,0); end if; update serial set serial_no = serial_no + 1
where name = param1; select serial_no into xserial_no from serial where name = param1; return xserial_no; end;
พิมพ์ หรือ copy ไปสั่ง ทำงานในโหมด mysql ครับ
ตรง CREATE DEFINER=`sa`@`%` ให้เปลี่ยน sa เป็น user ที่ท่านกำหนดนะครับ
ต้อง use databases ของ hos ก่อนนะครับ
-
ดัน ครับ ;D
ไม่ทราบว่าได้หรือยังครับ
-
ลองทำตามที่แนะนำแล้วยังไม่ได้ครับ
-
ลองทำตามที่แนะนำแล้วยังไม่ได้ครับ
... ลองทำตามนี้ดูบ้างก็ได้นะครับ ....
... อันดับแรกลองใช้คำสั่งสั่ง # mysql_upgrade ดูก่อนนะครับ ....
... แล้วก็ลอง grant สิทธิให้ผู้ใช้ใหม่นะครับ ตามนี้
mysql>grant all on *.* to xxx@'%' identified by 'xxx' with grant option;
mysql>grant super on *.* to xxx@'%' identified by 'xxx';
mysql>grant all privileges on *.* to xxx@'%' identified by 'xxx' with grant option;
mysql>flush privileges;
... ตรง xxx ก็ใส่ค่าที่เป็นของเราเองนะครับ ...
... restart MySQL แล้วลองทดสอบใช้งาน HOSxP อีกครั้งครับ ... :D ...
-
ถ้าไม่ได้ ผม remote ช่วยให้ครับ โทร.0814344632
แต่ต้องลองใช้วิธีที่พี่ขวดโพสต์ก่อนนะครับ
# mysql_upgrade
mysql>grant all on *.* to xxx@'%' identified by 'xxx' with grant option;
mysql>grant super on *.* to xxx@'%' identified by 'xxx';
mysql>grant all privileges on *.* to xxx@'%' identified by 'xxx' with grant option;
mysql>flush privileges;
... ตรง xxx ก็ใส่ค่าที่เป็นของเราเองนะครับ ...
... restart MySQL แล้วลองทดสอบใช้งาน HOSxP อีกครั้งครับ ... :D ...